1
vote
2answers
50 views

How can I replace around a wildcard in a regex search?

I'm trying to comment out all of the variable type declarations in a script I have, but I've run into this problem a few other times. I'd like to match a string, followed by a variable name, followed ...
0
votes
0answers
10 views

Upping all seconds of X value

I have a subtitles file. What regex should I use in Notepad++ to up every line of 2 seconds? 00:01:15,444 --> 00:01:17,613 should become 00:01:17,444 --> 00:01:19,613
0
votes
0answers
32 views

Multiline find and replace wrapper with wildcard inside

I'm trying to put a wrapper around a bunch of fields that already exist. I want to convert this: <div class="editor-label"> @Html.LabelFor(Function(model) model.FirstName) </div> ...
0
votes
2answers
17 views

Notepad ++ : How to Replace as the description

I have lines like these abye/>abye abys/>abys aced/>aced aces/>aces I want it like this abye abys aced aces Is it possible? If it is then please someone show me the way.
1
vote
1answer
17 views

Expression help for Find and Replace in Notepad++ please

how to replace and but symbol (,) after second number between every five numbers by using replace in notepad++ ? replace 00:00:26092 --> 00:00:30552 00:00:36770 --> 00:00:39933 00:00:40040 ...
1
vote
1answer
55 views

Remove CR LF for all lines that are not followed by a specific number

I have 14000+ lines of a database, that I want to edit with Notepad++. All these lines should start with 1000 and I therefore want to delete CR LF at the end of those lines that are not followed by ...
0
votes
1answer
62 views

Notepad++ : Do batch text replace

I'm trying to create a dictionary file from several webpages I found online. The dictionary indexes headwords so that they can be easily found in search mode. The information in the webpage is divided ...
0
votes
1answer
38 views

Using Notepad++ search/replace PHP code with regexp

I don't have experience in regexp so I hope someone will able to help me to change faster than by hands Need to replace objects to arrays like $variable -> child; OR $variable->child to ...
0
votes
1answer
39 views

How can I delete before and after EMAIL in notepad++?

I have this: :814, 'pera', 'name1@gmail.com', '2ed', '', 'da', 0.00, '195..110.18'), >815, 'danka', 'name2@gmail.com', 'd3d6', '0655566', 'da', 0.00, '212..65.82'), *816, 'ana', ...
0
votes
1answer
57 views

Selective Find & Replace to pretty up my C code in Eclipse or Notepad++

I am working on a old C code which have debug statments like this: debug(1, "SomeDebugStmt %s %d", someString, someNumber); ... debug(2, "another SomeDebugStmt number 2 %s %d", anotherString, ...
1
vote
1answer
216 views

How can I replace “/>XXXXX”/> with "/> within a selection

I have a CSV file which I am editing with Notepad++. There is a section of about 500 consecutive lines where I want to replace "/>XXXXX"/> with "/> where XXXXX are numbers. Is there a way to ...
-1
votes
2answers
39 views

Adding characters at the end of multiple lines [closed]

What I have: hello What I want: hello1 hello2 hello3 hello4 hello5 But with around 1500 numbers and the word isn't hello. I want to use Notepad++ for this. I don't wanna have to do find: $ replace ...
1
vote
1answer
76 views

Notepad++ replace every 3rd and 4th iteration

I'm using notepad++ I'm wondering if it's possible to replace every 3rd and 4th iteration in lines of HTML. The original code looks like: <div class="ui-bar ui-bar-d" <div class="ui-bar ...
0
votes
1answer
51 views

Mark all URLs ending with .se (Notepad++)

I got a massive document with text. I want to mark all the URLs ending with .se I managed to mark the part of the url just before .se with \w+\.se. But some of these URLs got 3-4 subdomains. So if I ...
1
vote
1answer
181 views

How to find and replace in the bookmarked lines in notepad++

I have a problem about how to find and replace in the bookmarked lines in Notepad++. For example my line is <content:encode><em>.... So I bookmark the lines that have ...
0
votes
1answer
554 views

How to find and replace in the between tags in notepad++

I have a problem about find and replace in notepad++. I want to find a space+space in text and replace with just one space. But the area I want to find and replace is between tags (ex: ...
1
vote
2answers
187 views

How Do You Replace Individual Periods/Full Stops Without Replacing Decimal Points?

A bit of an awkward one, this; I've been gathering data using an eye-tracker, which gives its output as .txt files (Excel is also an option but there are too many samples so notepad it is). I need to ...
2
votes
2answers
82 views

Notepad++ regex replace

id like to replace all the random numerical values to a solid value of a code random values ex: DELAY : 214 DELAY : 1243 and id like to replace all them to DELAY : 1
0
votes
0answers
45 views

Replace txt with space in a specific column

I am searching for a way to look into a specific column , and if the there is Char in that column (mostly date) I need to replace it with spaces. Example: 123456789(20140109A). Columen number 10 ...
0
votes
1answer
387 views

Quick file search for text

I was forced to use Visual Studio and wave off my favourite Notepad++. Now after coming back to Notepad++ I can see how slow it searches for fiels, where Visual Studio had "Solutions" where files ...
2
votes
2answers
2k views

How to replace a specific character between specific words?

Would you be able to help me in finding out how I can use the Notepad++ Find/Replace function to replace a specific character between specific words. Please see the example below, I would like to find ...
-1
votes
2answers
42 views

How to delete word and all words after that

I have this URL: https://www.facebook.com/photo.php?fbid=611377065590688&set=a.320150204713377.74079.229899403738458&type=1 I want to be: ...
1
vote
1answer
149 views

Notepad++ Undo undoes whole replace history

In Notepad++ (v6.5), having done a series of Find-and-Replace-All's, hitting CTRL-Z seems to undo the whole series. Hitting CTRL-Y redoes the whole series. Can you undo only the last Replace-All ...
0
votes
1answer
56 views

Insert new line before each operator [duplicate]

Suppose I have a line like this: abc + def - vfg * I want my output to be like this: abc def vfg If only a single operator is there, I can replace: \r\n+ with + but how to do it irrespective ...
0
votes
0answers
57 views

How can i keep and remove some charecters from specific line notepad++

i have about 1000 of 80000 rows that looks like these lines and with different disposition ...
0
votes
1answer
633 views

Add new line after words matching a specific pattern

I'm trying to add a new line before and after a hyphenated word (one or many hyphens) in Notepad++ Input This is a search-and-replace test which I need-help to figure-out</h2> Output This ...
3
votes
1answer
248 views

Saving part of found term when replacing in Notepad++

I want to use Notepad++ to find/replace large chunks of code, but a hefty part of it deals with arrays. How can I put a "variable" in Notepad++'s Find/Replace window so that part of it can be saved ...
0
votes
2answers
297 views

Regex replace with Notepad++

In my XML file there are lots of sub strings starting with STDSUP- and then three digits. For example: STDSUP-123. I would like to replace the STDSUP with CCDA. There are some sub strings where ...
1
vote
1answer
83 views

Convert command-line commands from one tool to another in notepad++

I have a script with lots of lines like this: ss Get $/%SS_SOURCE_PROJECT%/DLL/Vim25Service2005.dll -I-Y -R -VL%2 ss Get $/%SS_SOURCE_PROJECT%/97AUTO/*.* -I-Y -R -VL%2 We're migrating from one tool ...
0
votes
5answers
5k views

replace given char with ascii nul in notepad++

Tried extended search --> replace with \0 but does not seem to work. Instead it deletes all occurrences of the char. Could it be a bug ? NB : replacing with \n, \r\n and the like works in extended ...
0
votes
2answers
118 views

Find and Replace

I would like to find and replace a word such as banana and then I'd like to add the number 1 to the first word, number 2 to the second, and No. 3 to the third and so on. there is an easy way or do I ...
0
votes
1answer
416 views

How to find and replace an entire line (random last 40 characters) with notepad++ using regex?

I need to replace something like this: userPassword: {SSHA}hLPcGtsS+sUhwlYq/23dsECuRGsvJj59OQXXJQ== with something like this: userPassword:funkypassword I have tried some random stuff I've ...
1
vote
2answers
3k views

Replacing last character at the end of each line in a file

I have a file with the format: abc!12345th! bcv!2345568790hg! fjldslj12123344!!flgnjlk! I was trying to figure out how to remove the ! symbol at the end of each line. I tried using "Find and ...
-2
votes
2answers
256 views

“Replace all” using Regular Expressions in Notepad++

So I never actually used Regular Expressions in depth. I've got a config file consisting of thousands of lines looking like this: "Line 1"=18341235645 "Line 2"=123784571 "Line 3"=86273485 "Line ...
1
vote
2answers
139 views

Delete first half of line in Notepad++

I think the following can be done in a search & replace function. How can I select until yahoo.com: overjoyedradica@yahoo.com:SQOVTJOHEN and turn it to: :SQOVTJOHEN
1
vote
1answer
9k views

Find and replace using wildcard character in Notepad++

I have very long list in this format: <option value="adf">Option 1</option> <option value="es3">Option 2</option> <option value="34f">Option 3</option> With ...
0
votes
1answer
700 views

Regular Expression to replace part of URL in XML file

I need a regular expression in Notepad++ to search/replace a string. My document (xml) has serveral thousand lines that look similar to this: <Url ...
1
vote
1answer
858 views

Delete specific number of characters after a specific string is found

I have several lines of code and I'm looking for a way to search for a specific string e.g. 'id0=' and delete it and all 10 characters after it, per line. I would prefer a way/macro/addon for ...
4
votes
1answer
4k views

Replacing all special/accented characters with equivalent regular characters in Notepad++

I'm trying to figure out a way to automatically search and replace all special/accented letters/characters (such as Â/Ô) with the equivalent regular letters/characters (A/O) in Notepad++. Tried using ...
0
votes
1answer
47 views

Select different parts of an line

I'm new to regexes and have a file that looks like this one: |60|493,93|1,6500| |60|95,72|1,6500| |60|43,88|1,6500| |60|972,46|1,6500| I used the regex (\|60|.*)(1,65) and I was able to find all ...
1
vote
1answer
305 views

Prevent inadvertent replacement in notepad++

Is there a way to make Notepad++ to ask for confirmation when replacing all instances of a string in a file or files? This is to prevent inadvertent replacement.
2
votes
2answers
324 views

Regular Expression Help Needed in Notepad++

I need to know the syntax for a regular expression (notepad++) to help me find/replace every instance of following string in a text document the string is as follows Where do you want to go next? ...
0
votes
1answer
452 views

Using RegEX To Prefix And Append In Notepad++

I found this question on StackOverflow. It worked great but I also need to include lines that have non-alphabet characters in it like: some_name some.name And add prefixes like this: ...
3
votes
1answer
4k views

Delete all text before and after a certain string

I have some URL like the following http://www.SOMEURL.com/first-category/1343381-example-text-text-text-text-2000-a.html What I want is to simple delete all of the text before and after the number ...
0
votes
0answers
334 views

Implementing find and replace using NPPExec in Notepad++

How do we perform find and replace using NPPExec plugin in Notepad++? Any help (command/resource) in this regard will be greatly appreciated.
3
votes
2answers
308 views

Append lines one after another in notepad++

How do we achieve the following using replace function in notepad++? Transforming the following cow horse elephant camel into 'cow','horse','elephant','camel' I know ^ and $ (under Regular ...
0
votes
2answers
467 views

Notepad++ Find & Replace (with regex) issue

I'm going crazy on a weird issue, I've been trying to find this text: CREATE Proc [dbo].[procName] (@EMI_ID numeric(8), @ESYNTH_ID numeric(8), @FLD_ID numeric(8), @SYNTH_ID numeric(8)) As And I use ...
0
votes
2answers
64 views

Search Replace extended in a html file

i have a little question. I have a big html file and want to replace lots of things inside a lot of times. The only problem i cant solve is a replace with a variable. Example: <image ...
2
votes
1answer
1k views

Removing HTML tags in Notepad++

I'm trying to remove some tags using the Find and Replace feature of Notepad++. What I'm trying to remove for example is <num> and </num>. Right now I'd input <num> and replace it, ...
1
vote
2answers
1k views

Notepad++ RegEx does not work with min and max occurence

I want to find two or more (max 9) white-space characters and replace it with newlines. My RegEx syntax is as follows: [\s]{2,9} However, Notepad++'s RegEx doesn't seem to work with curly braces. ...