Questions tagged [notepad++]
Notepad++ is a free source code editor and Notepad replacement that supports several languages. Running in the MS Windows environment, its use is governed by GPL License.
2,890
questions
1
vote
2
answers
423
views
In Notepad++ How can I identify/count records that don't meet a certain length requirement?
I have a file in Notepad++ that has 200,000 rows and each row needs to be a certain length (2500). However I know some rows are shorter or longer than that. How can I find out how many rows are ...
-1
votes
2
answers
745
views
Notepad++ set delimiter between text
Struggling to find a way to delimit this as the common symbols you would use to delimit are reused throughout the different strings. I want to break a line at each occurrence of TRNDATA.
Example:
...
0
votes
0
answers
79
views
Paste formatted SQL queries from text file into Excel (one Excel row for each query)
I have a .TXT text file that has formatted SQL queries in it.
--The corresponding Excel row ID is: 2
select
main.active_transportation.objectid,
main.active_transportation.type,
main....
0
votes
2
answers
219
views
How to Replace several words in one string in Notepad++
I need to replace several different specific words/values in one string, for example:
1), 2), 3), A., B., C., etc.
They can all be replaced with the same thing - nothing, i.e. no value entered into ...
0
votes
1
answer
47
views
Regex: Replace empty space with a dash between the words, on canonical html tag
I have this canonical link, but if you look well, there are some empty space on the html link. Those empty space I must replace it with a dash
<link rel="canonical" href="https://...
-3
votes
1
answer
44
views
Regex: Find those words that doesn't have html tags on line, and add tags before and after
I have these 3 lines. The words in the second line are missing html tags.
<p class="mb-40px">ARTICOL START</p>
ARTICOL START
<p class="mb-40px">ARTICOL START</...
0
votes
1
answer
35
views
How can I find the next following line containing a specific string, then append that to the current line? (Notepad++)
I'm trying to search through text in Notepad++ for certain "line pairs" (lineA, lineB) to concatenate them and discard anything else.
Each Line Pair
lineA must contain a comma
lineB is the ...
0
votes
3
answers
75
views
Regex: Put the content of mutiple html tags into a single html tag
<p class="mb-40px">Decisive too, of
<p class="mb-40px">otherwise, it was the opportunity to
<p class="mb-40px">acquire what were to be two pillars
<p ...
0
votes
1
answer
24
views
Regex: Add html link to another html link in the same html tag (Double the html Link)
I have this html class with a html links inside. The problem is not clickable on mouse over. So, I want to make it clickable.
<p class="mb-40px"><strong>* Sursă:</...
-2
votes
3
answers
582
views
Regex: Select and delete all lines between 2 points
I want to delete all those lines that starts with <script type="application/ld+json"> and ends with </script>
For example:
<script type="application/ld+json">
{
&...
0
votes
1
answer
340
views
Customization to bring back old tab context menu in Notepad++ not working?
The new context menu in Notepad++ is inconvenient because I have to go to a submenu to do actions like clone document to other view.
To fix this, I basically just followed the instructions here. ...
1
vote
1
answer
313
views
How to remove duplicate lines and preserve newlines, tabs, and spaces in notepad++?
Let's say I have a file with thousands of lines, how would I have notepad++ remove duplicate lines (just like the built-in feature), but keep all the spacing?
If I use the built-in feature it deletes ...
3
votes
1
answer
365
views
Notepad++ Delete Multiple Lines with Find in Files
I want to delete the whole line that contains certain words such as: build, name, disk.
I know that there is a search string ^.*?build.*$(\R|\Z) which will find lines containing "build"
How ...
0
votes
0
answers
427
views
Bulk replace text in XML file with the filename
In an xml file, I need to batch replace over 200 files with appropriate tags, the xml template is:
<htf1>
<title></title>
<date></date>
<quality></...
0
votes
3
answers
12k
views
How to remove extra space (nbsp) at the of every line in Notepad++
So I have received this film script which has one or two extra spaces at the end of every line.
I want to remove extra space from the end of every line in notepadd++ but keep the spaces between the ...
0
votes
0
answers
46
views
Clean a CSV file with notepad++ [duplicate]
I have a comma separated values (CSV) file, that I need to reduce to one column. Let me show you some example:
I need to extract this in every line or just leave IP:port like this:
It doesn't ...
0
votes
1
answer
217
views
How to merge lines every 10 rows in Notepad++?
There is an answere about 3 rows here How to merge lines every 3 rows in Notepad++?
But this method doesnt work for 10
I need to do this:
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
...
0
votes
4
answers
2k
views
Which Notepad++ plugin sets the text's background color to orange?
I installed about two dozens of plugins in a new Notepad++ installation and the result is:
I checked all plugins. None of them gives a hint to the background color. I also checked Settings → ...
0
votes
1
answer
325
views
Extracting Domains from URL in EmEditor or NotePad++
Suppose I have a list of domains mixed with subdomains
As shown below;
sub1.domain1.com
sub2.domain2.com
sub3.domain3.com
and I want to extract just the domains from the list to give the preferred ...
0
votes
1
answer
3k
views
PDF editing in Notepad++
When I edit some properties of my PDF file in Notepad++ and save it, it can be read and opened in Adobe PDF reader or Acrobat but it will not open in different readers like Ashampoo: it popups with an ...
0
votes
2
answers
703
views
How do I extract domains from email list in EmEditor or Notepad++
I have a list of emails and I would like help extracting just the domain names from the list of domains.
Sample Email list
[email protected]
[email protected]
[email protected]
The preferred ...
0
votes
0
answers
25
views
how to removr last trail slash from third column in a text with notepad++?
Example:
Redirect 301 /url1/ https://www.website.com/page1/
must be
Redirect 301 /url1 https://www.website.com/page1/
thanks a lot!
4
votes
1
answer
345
views
How does Notepad++ understands "last used directory" term?
For the term of "last used directory" in Notepad++ I have these questions:
What is the exact meaning of in?
Exactly which directory will be taken as that each time?
When exactly Notepad++ ...
1
vote
1
answer
224
views
How to find 2 consecutive words, but counting only the shortest string [closed]
I want to be able to search in Notepad++ for a string that begins with a [startWord] and ends with an [endWord].
Additional conditions:
the [startWord] and [endword] can each only appear once in the ...
1
vote
1
answer
225
views
How to copy and paste columns Notepad++?
I'm having some issues with Notepad++ at the time of copy (cut) columns into the same document.
For example I have this:
And I need this:
But at the moment I use Alt+Shift and arrow keys to copy the ...
0
votes
1
answer
503
views
Remove a line containing a word and the previous line
I'm editing a HTML file on Notepad++, and the problem is that is a very big file, and I want to remove some unnecessary lines to work on it.
The following code appears a lot in it, at the start of ...
0
votes
1
answer
242
views
File permissions changing after editing with Notepad++ on Windows 11?
I'm using a program which creates settings files in XML format.
Out of curiosity, I opened said XML file, changed the property that contains the name of the profile (not the file name!) and saved it. ...
0
votes
1
answer
39
views
How to highlight something in one text so that it's highlighted in all other opened texts (Notepad++)?
If I am searching a whole process, in 2 opened texts and the process revolving between 1st text to 2nd text. When I am highlighting something in 1st document , it is not highlighted in 2nd text.
Is ...
0
votes
1
answer
38
views
Regex: Delete the contents of all files that start, the first line, with the word ETICHETE:
I want to use Regex to delete the contents of all files that start with the word ETICHETE:
For example, all my files starts, the first line, like this:
Eticheta: Semifinala GBOB Crisana - Revista De ...
1
vote
1
answer
417
views
Notepad++ move first two characters to end of line
I have a list of Country Codes in the following format:
US:United States
I'm trying to replace it with
United States:US
I've moved the semi-colon to the end by searching for ^(.*)\b:\b(.*)$ and ...
5
votes
2
answers
570
views
Behavior of return/enter key
In some of my notepad++ files, hitting the Enter key yields a carriage return (CR) and a line feed (LF), while in other files, it yields only a line feed.
I have not been able to find any rule of ...
0
votes
0
answers
43
views
Need to replace a 5 digit number in specific lines that has specific word in it (notepad ++)
<MouseMovementEvent>
<Type>2</Type>
<X>24848</X>
<Y>27245</Y>
<Delay>2</Delay>
</MouseMovementEvent>
<...
1
vote
1
answer
118
views
Invert order of lines by the pair
I have the following structure:
Down: This should be down 1
Up: This should be up 1
Down: This should be down 2
Up: This should be up 2
Down: This should be down 3
Up: This should be up 3
Down: ...
2
votes
2
answers
493
views
Search 16 digits number and replace 7th to 12th digits with x
How to use Notepad++ regular expression to replace the 7th to 12th position of the found 16-digits numeric string in a text file with "x" ?
Example of numeric string to search: ...
2
votes
2
answers
365
views
Errors running Notepad++ from WSL Unbuntu
I'm trying to run Notepad++ from WSL Ubuntu as described here.
Even without the alias, when I try to run notepad++, I get an Invalid argument error like this:
peter@Peter-PC3:~$ /mnt/c/Program\ Files\ ...
1
vote
0
answers
358
views
Create a new file from commandline notepad++?
Is it possible to use the command line to run notepad++ with new, blank file, as if ctrl+n were pressed inside notepad++?
I understand that you can add some commands like makefile or notepad++ ...
0
votes
1
answer
956
views
How to replace the last space in a line with '|' character in Notepad++
I couldn't find any sample question that solves my problem in Notepad++.
I have a string of n words in the following format in a Notepad++ text file:
Word_1<**space_1**>words_with_spaces&...
2
votes
0
answers
54
views
how to remove duplicated between 2 values?
I have 100.000 lines with information like:
K1xxxxx,ttttt,wwwww,xxxxxK2,
K1hhhhh,sssss,gggg,jjjjjjjK2,
K1xxxxx,ttttt,wwwww,xxxxxK2,
I want the result as:
K1xxxxx,ttttt,wwwww,xxxxxK2,
K1hhhhh,...
0
votes
1
answer
45
views
Combine lines whenever string matches in the first field
Combine lines with matching first field
I have a long text file which consists of lines in the following format:
Groub 1
any|word،some other word،more word
any word|word2،other word،more word،more
any ...
2
votes
1
answer
237
views
Is there a way for notepad++ to not remember tab order?
I close a tab and it jumps to some other (Seemingly random) tab (I'm guessing the it is actually the previously selected tab but not 100% on that).
I would prefer it just open the tab to the right of ...
0
votes
1
answer
334
views
Notepad++ how to remove duplicated words with different numbers
I have a text file like this with over 70,000 lines:
discovered_items[0]: 434203938999435346
discovered_items[1]: 434477435732567237
discovered_items[2]: 434477435749337074
I want to remove all the ...
0
votes
1
answer
1k
views
Notepad++ - Change colour for specific character [duplicate]
Is it possible to change the colour for a specific character in Notepad++?
Let's assume you're using a defined language like KIXstart or Tex and you need every ";" in red colour.
1
vote
2
answers
176
views
How to remember last opened position in Notepad++?
Let's say I edit a file at line 1000. If I close the file and open it the next time, it will go to the first line. Any method to let it open at line 1000?
1
vote
1
answer
42
views
Get CSV from 2 patterns and ignoring all the rest
There's a pattern that starts the same but is a little different as it ends, one continues on the beginning then I want to keep the line remainder, the other I want to keep right away but before the ...
1
vote
3
answers
646
views
How to extract specific text from notepad ++
I have a log file that I need to extract specific data elements from.
Example text:
[22-12-20 21:16:04.521] FROM LIVE <$011B4B50:FleetCard_10:1,51.75,1,1,200001,Fleet No,5411,34319,TARJETA,,51....
1
vote
1
answer
42
views
RegEx to replace certain text in Notepad++
I have text from chats containing 200.000+ lines in format like this:
[21-Nov-22 04:49 PM] VillagerA
Hi
[21-Nov-22 04:50 PM] VillagerB
Hello
[21-Nov-22 04:50 PM] VillagerA
Hi again
[21-Nov-22 04:51 ...
0
votes
1
answer
198
views
How do I delete data between specific words with <> brackets?
I have this the below data, I wish to delete everything in between <statMods> and </statMods> I've tried the countless methods mentioned here, but I think the '<>' brackets are ...
0
votes
0
answers
240
views
How to get the accurate mouse cursor index position in a text file
I have a large text file that I'm importing into a python script as a string using the following code.
from pathlib import Path
file = Path('edits.txt').read_text(encoding='UTF8')
I need to be able ...
0
votes
0
answers
45
views
Removing random image HTML inside SQL file with Notepad++
I'm trying to remove a bunch of HTML inside an SQL file with Notepad++. This is probably really easy, but having a hard time trying to understand how to do it.
I want to replace these lines with ...
0
votes
1
answer
47
views
Find and replace but keep original value sorted from time at the end in notepad++
I have a text that has the time at the end of each row and I would like to keep the time and add a new line after the time and also separate the lines with a ; to be able to imort a CSV file in excel. ...