Questions tagged [notepad++]
Notepad++ is a free and open source text editor for Windows. It is designed as a replacement for the built-in Notepad application.
7,111
questions
-2
votes
1
answer
42
views
regex to select specific word [duplicate]
I am trying to write regex in notepad++ to only select a specific word DATE and not select any combination of words having DATE e.g. UPDATE, CONSOLIDATE or words with prefix with underscore or any ...
-1
votes
0
answers
40
views
Notepad++ compare file using python [closed]
I am trying to generate a file which shows the differences between two files just like notepad ++ compare plugin generates with a view on left and a view on right with the differences between the two.
...
-1
votes
0
answers
31
views
How to evaluate xpath in Notepad++ for XML with namespaces?
How to evaluate xpath in Notepad++ for XML with namespaces?
I'm evaluating xpath for below XML. But Notepad++ Xpath Evaluator not providing any result. Please provide me the steps to validate xpath ...
1
vote
1
answer
52
views
Match all lines where the text is not surrounded by a specific set of characters
I'm trying to do a find-replace (in Notepad++, but the specific tool may not matter) for certain entries in a document. The document has entries that look something like this:
==Some header==
* {{...
0
votes
2
answers
125
views
Regex to match word containing only given characters [closed]
I want to match the entire word (or string) that is containing only a set of the given characters.
For example, if the list of letters given are (p, o, p, s),
it should match/not match like this:
pop =...
1
vote
2
answers
58
views
Find and Replace Words that have Uppercase letters in the middle using RegEx for Notepad++
I have a huge list of names. Each names are separated by newline and formatted with comma like the following
Lastname, Firstname
Lastname, Firstname
Lastname, Firstname
Lastname, Firstname
But there ...
-1
votes
1
answer
41
views
need regex for removing section of file in notepad++
I need to parse a large file that is typically thousands of lines, and remove a certain section from each match. I want to do it using regex in Notepad++, but am unsure on how to do it. For instance, ...
-2
votes
2
answers
88
views
Choosing Specific Regex Patterns While Excluding Others
I want to bookmark following regex lines in notepad++:
(?<!\d)0*\K(?:\d{1,3}(?:,\d{3})+|(?!0+(?!\d))\d{1,4})(?!\d)
but I don't like following regex lines select with above regex too:
\d{4}Q[1-4]
...
1
vote
1
answer
37
views
How to Extract my chosen emails from huge file
I have huge file with 300 milion records. On every line appers email adress with information.
Sometimes one email can appear up to 40 times.
I have a list of 15,000 email addresses and I would like to ...
1
vote
1
answer
41
views
Current Line Indicator Frame color of Notepad++ 8.6
Selecting 'Editing' in the Preferences window of Notepad++ 8.6 allows the user to configure how the current line should be highlighted: either highlighting the background or within a frame, the 'None' ...
2
votes
1
answer
100
views
Regex, anonymise all matches, per line where there is 1 mandatory match with various optional matches
I've research this quite heavily now but nothing seems to be getting me close
Below is an excerpt of a csv file. I need to anonymise certain lines where there is a match found for an email address. ...
0
votes
3
answers
80
views
Conditional Syntax for Hyphen [duplicate]
Currently have two regex expressions that I would like combined into one with conditional syntax. The hyphen[\s] appears at beginning on some of the text strings, others is doesn't
Find: ([A-Z0-9 #]+...
0
votes
1
answer
43
views
Notepad++ - Replace XML node with XML node if matched with parent's sibling children nodes
I am trying to replace all the values of a XML node type if it matches those from its parent's sibling child nodes(not sure the right term to use here)
Below is an illustration.
In the below example, ...
0
votes
2
answers
46
views
How to remove the line that start with bunch of tabs/spaces notepad++
My text file contain something like this
asd signal1;/* '<Root>/explain1' */
asd signal2;/* '<Root>/explain2' */
asd signal3;
/* '<Root>/...
0
votes
1
answer
35
views
Bookmark lines that start with a year and month
I have a list like following:
20110512192714
20794709157481
20121203175303
20794709157481
20210131201708
20211101050154
20220501022609
79776361952441
Now I want to select lines that start with a year ...
0
votes
1
answer
40
views
Regular expression to remove everything except links for notepad++ or regex101.com
So i've tried this multiple times but to no avail.
I have a code where I need to remove everything except links. The domain can be any domain, either http or https
/**/
jQuery(function($){
...
0
votes
1
answer
44
views
How to inverse regex areas in notepad++?
I have following list:
<th class="News">14</th>
<td class="News"><a href="pclinuxos">PCLinuxOS</a></td>
<td class="News&...
-2
votes
0
answers
23
views
How to remove non-bookmarked lines from multiple files in notepad++? [duplicate]
There have been many times when I wanted to bookmark a regex in multiple txt files and remove non-bookmarked lines.
how can I do this in notepad++?
are there any way to inverse a regex selection and ...
-3
votes
1
answer
79
views
I want to use regex notepad to displace a text from an expression that is in the middle of the text. For a better understanding, look at the example [duplicate]
example:
this:
into this ($$) business if not to ($$) save the world
need this:
save the world ($$) business if not to ($$) into this
0
votes
1
answer
45
views
Bookmark specific word line and one line before each bookmark
I have a list like following:
<th class="News">20</th>
<td class="News"><a href="vector">Vector</a></td>
<td class="News&...
1
vote
2
answers
49
views
how to remove before and after text in a case where each line is different but has the same separators notepad++
i wanted to try and remove text before and after a separator but the text in the middle isn't all the same example being.
123:[email protected]:hello
hello:[email protected]:891
and the result I ...
-1
votes
1
answer
28
views
Notepad++ how to replace with random positions of text
I wanna replace few strings in my XML, but i didn't know, how to "TAG?" strings. I lost my passwords from Opera, but i got old copy from Mozilla but they was at different groups and parses ...
-2
votes
1
answer
27
views
Notepad++ Document List Maximixed when Docked on the Left
While working in Notepad++, I accidentally managed to maximize the Document List to the entire Notepad++ desktop. There is no scrollbar to find the edge of the Document List to resize it.
I can undock ...
2
votes
1
answer
89
views
Select numbers smaller than 10000 using regex in notepad++
I have a very long list that following is a part of it:
English
4,000,000
AfricanAmerican
1,771,000
Irish
1,100,000
Dutch
800,000
German
700,000
Scotch-Irish
0-640,000
NativeAmerican
=0=...
1
vote
1
answer
20
views
Substitue a value inside a <tag>X</tag> and substitute with the value inside <anothertag>Y</anothertag>
I have an xml file and inside it i have some tags, i need to copy what's inside of the tag from one and copy to another.
<xValue>100.0</xValue>
<xNumber>50.5</xNumber>
I have ...
1
vote
1
answer
95
views
Remove all code of a JSON file except for specific value string in Notepad++
I have a list of artists in a JSON file. I would like to remove all the code in the file except for their names. The code looks like this:
},
{
"name": "...
0
votes
1
answer
61
views
How to make line breaks strictly under the numbering line in Notepad++?
How to make line breaks strictly under the numbering line? The screenshot shows that the first line is moved to the beginning of the next one. But subsequent lines are strictly indented:
How to make ...
3
votes
2
answers
65
views
Notepad++ replace only specified word in a line
I'm trying to replace a specific word in every line in Notepad++. I've managed to duplicate said line like so:
cn: Johanna Zimmermann
cn: Johanna Zimmermann
And in every second line I want to ...
0
votes
1
answer
44
views
How can I do a search and replace from some text to a second or third instance of the to text?
My bad if that question is worded janky. I hope it can be edited if needed. I couldn't figure out how to word it better. Anyway.
I have some text lines like this:
1. "C:\OverPark\Casting\What ...
1
vote
3
answers
113
views
Find and replace regex that will transform every three lines of text into tab-separated text
Need help with find and replace regex that should work in Notepad++ that will transform the following:
Casino Win (Wilderness)
October 6, 2023 1:10 AMID 275753888
725.00 CAD
Casino Bet (Wilderness)
...
1
vote
1
answer
134
views
In Notepad++, how do I select all partially duplicate lines and keep only the first instance?
The lines in question are the ones that have a name, and then a time references at the end. I need to find all the lines with duplicate names. Keeping only the first instance with the earliest ...
-1
votes
1
answer
46
views
Remove single or multiple commas at the end of lines using Notepad++ regex replace
In an excel column, I have words that ends with a comma and do not want any commas at the end of the lines.
Here is an example:
Investments,
Financial Consultant,
How do I get rid of these commas ...
1
vote
2
answers
81
views
Delete a line that doesn't have an specific line above it
I had this rythimn game chart script
TARGET(1
TIME(268466)
TARGET(1
TIME(273333)
TIME(278723)
TARGET(1
TIME(306666)
TIME(309492)
TARGET(0
TIME(330005)
However, I need that every line maintains a &...
0
votes
1
answer
52
views
Find a specific position in notepad++(postion 4292) That contains anything other than a specific character (N)
I have a rather large flat file that has some data issues. I am trying to find a fast way to determine where those issue lie. Position 4292 should either contain a Y or an N. I need to find all lines ...
1
vote
1
answer
44
views
Regexp replacement only between tags
I have this text:
Some text here.
bla bla bla
<myTag>
m_Member1 blah blah
m_Member2 blah
m_Member3 foo bar blah
<end>
Other text here...
bla bla.
I want to replace m_Member1, ...
-3
votes
1
answer
40
views
How to view document in top and bottom using Notepad++ [closed]
I mean, side by side is supported in Notepad++. But if you viewing coding file, what you need is width, not height. side by side is great, but often times i need to view file using top and bottom ...
1
vote
1
answer
140
views
Automatic Notepad++ formatting for writing scripts
I'm wondering if anyone had techniques/tips for using Notepad++ for writing scripts. I know real IDE programs I've used for say, python, have a lot of built-in autoformatting. When I write an IF ...
-3
votes
1
answer
63
views
How to test to make sure code works in Notepad++
I have written a regular expression in Notepad++ using PHP. I want to enter some test strings to see if it works or if it needs edited. How can I do this in Notepad++?
I tried the Run menu item (F5), ...
-1
votes
1
answer
56
views
Missing CR LF (newlines) in scanned 2D barcode content in a web form field (or Notepad++)
I'm trying to scan a 2D barcode into a web page form field, on a Windows PC. I'm using a scanner device. Barcode contains around 10 values delimited with [CR][LF] and I believe the content is in order ...
0
votes
1
answer
54
views
How to remove all special symbols after : in EmEditor
Hello i need delete all special symbols like .,_- after symbol :
Example i got something like that
sfjsfajsafwp.pl:fsasaf.fssf
sfjsfajsafwp.pl:fsasaf.fssf
sfjsfajsafwp.pl:fsasaf.fssf.dgdg_
After this ...
-2
votes
2
answers
142
views
Trying to edit massive 1.5 GB CSV File
I have been trying to make changes to a csv invoice that my company gets on a monthly basis. However, the File is 1.5 GB in size and contains over 1.500.000 rows with 36 columns. While I can open the ...
0
votes
0
answers
14
views
Remove everything that come before and including the last letter in an ID using Regular Expression [duplicate]
Using Notepad++, I am trying to figure out how to write a regular expression that removes everything that comes before the last letter in a list of IDs. This includes the last letter the regular ...
1
vote
1
answer
49
views
Keep only number in regex lines
I have a list that following is a sample of my list:
Bolt
®1421918Users
Classmates
666138Users
SixDegrees
470621Users$$
PlanetAll
AT308079Users
theGlobe
214442Users
1997
Now I want to keep ...
2
votes
1
answer
25
views
Bookmark consecutive non-empty lines that start and end with a regex
In following list I want to select consecutive non-empty lines that start and end with ^(?!.*\+\s*$).*?(?<!\d)(?<!\d,)(\d{1,3}(?:,\d{3})*)(?!,?\d).*
1,754,085
Bolt
817,653
classmates
cm
623,...
1
vote
4
answers
180
views
Powershell: Scripted Remote Installation using Start-Process of Notepad++ hangs indefinitely
I have written a script, that takes a csv file with vulnerable Servers and should replace the installed version of Notepad++.
I uninstall the currently installed version from the machine, push a ...
0
votes
1
answer
40
views
Consistent-length output from regex
I am working with a file that contains data like this on each line:
'string1', 'string2', 'string3', 'string4', '8/31/23', 'string5'
'string1', 'string2', 'string3 b', 'another string 4 value', '...
1
vote
1
answer
33
views
Why my regex move next line to end of replace value?
I want to replace empty lines with /////////////////////////
Now I use following regex for this:
Find What : ^\h*\R
Replace With : /////////////////////////
this working but it move next lines of ...
0
votes
1
answer
52
views
Pytest error: 'py.test' is not recognized as an internal or external command, operable program or batch file
I am trying to run the pytest file in cmd. I am using the command
py.test
as mentioned by you but I am receiving the error :
'py.test' is not recognized as an internal or external command, operable ...
0
votes
0
answers
54
views
NUL characters sometimes appear next to ASCII characters in a concatenation of multiple text files
I have a txt file, output.txt, that is a concatenation of 1k other files, created via a python script.
import shutil
with open('output_file.txt','wb') as wfd:
for f in file_paths:
with ...
-1
votes
1
answer
93
views
How to split comma to vertical level in Notepad++
How can I take SQL code that normally is just a group of columns and list it vertically to be easier on the eyes(example below is for simplicity):
Current
Select
x.column_name, x.data_type,x....