0
votes
1answer
34 views

Notepad++: How to remove a section of text with regex

I have a file that has lines like: string1,string2,string3 I would like it to just be string2 How would I use regular expression to do this?
0
votes
2answers
30 views

How to search the text for several lines and find in order using regular expression

Trying to figure out the regular expression to be used in Notepad++ where I can search the text below (as an example) and find the results in order. Sample Text: { USERECOVERDB 1 } protocol ...
0
votes
2answers
38 views

Change number in last row in data seperated with commas in NotePad++

I have rows of data all separated with commas. How can I replace the last numbers after the last commas with the number 5 in NotePad++? For example: How do I replace 9, 17 and 124 with 5 in the below ...
1
vote
1answer
86 views

Replace spaces with colon (:) in Notepad++?

Suppose (this is sample data) I have these lines: A W BAKER X CANDLESTICKMAKER Y DOGCATCHER Z I want to change the whitespace ...
0
votes
1answer
39 views

How to use a regex to organize song lists, changing their order from “Song - Artist” to “Artist - Song”?

I have a long list of songs in the format "Artist - Song", but I want them to be listed as "Artist - Song". How to change all items automatically with a regular expression, preferably on Notepad++?
0
votes
1answer
28 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, ...
0
votes
0answers
29 views

Can I apply a regex to file filter on Notepad++?

I have a folder full of xml files, and I want to search through them for a particular ID. However, I only want to search the files that are of the format hello_apple_01.xml, hello_apple_02.xml... ...
1
vote
2answers
84 views

Remove quotation marks around a number (while leaving other quotes)

I want to replace all text like this: "latitude": "32.336533", with this: "latitude": 32.336533, I'm using Notepad++.
1
vote
1answer
33 views

How to remove characters from a matching string?

I want to remove spaces from a list of phone numbers. The phone numbers are in the following format: "+33 x xx xx xx xx" most of the time (quotes included). Spaces can be placed differently. In ...
1
vote
2answers
66 views

Replace all, “But” Regex Notepad++

I have a text file with lines looking like the one below : ('8510851205', 'needthishere', '', ''), I need it to remove everything and leave only needthishere on every single line. How would I do this ...
0
votes
1answer
51 views

Notepad++ exclude starts with a two digit number

I would like to exclude anything that starts with 87. By combining the first two digits, I can find lines that start with ^8+7 or ^87. But I was trying to use ^[^8+7], but it doesn't seem to work. I ...
2
votes
1answer
39 views

Notepad++: Add tab at the beginning of a multi-line match found with regex?

I have text formatted like this: :AGG NUMBER 1 :TYPE Alfa any text 1 line 2 anythihng :END :AGG NUMBER 2 :TYPE char other any text 1 line 2 :END I need to add a tab character at the beginning of ...
1
vote
1answer
60 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
85 views

Find duplicate phrases - any tool or regex

I've got a long document, and I suspect that some phrases (one or multiple sentences) are identical or at least similiar. Is there some way to find these repetitive phrases? Some tool or regex?
-2
votes
1answer
111 views

Notepad++: How to remove text in between two specified strings using Regex

I have following lines of data: X1+0X2+0X3+0X4+0X5+0X6+0X7-0.25X8-0.25X9-0.25X10-0.25X11+0X12+0X13+0X14+0.8X15+0X16+0X17+0X18 ...
0
votes
1answer
97 views

Notepad++ regex highlighting

I'd like to be able to highlight entire lines in notepad++ by keywords, but these keywords would be added in the end of each line. I tried with the available mechanism of "User Defined Language" ...
0
votes
2answers
65 views

Remove the second literal \N per line in Notepad++

I have a text file with several hundred lines similar to below: Here are some examples lines,\Nthis text needs to strip out\Ncertain, Here are some examples lines. Here are some. Here are some ...
0
votes
1answer
38 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
votes
3answers
109 views

How to replace all but specific part of string in Notepad++?

I have a list with lines like this: 103238704-|--|-INEEDTHIS-|-r4Vp5iL2VbM=-|-maiden name|-- Is there a way in Notepad++ to delete everything except INEEDTHIS? INEEDTHIS will be an email ...
1
vote
1answer
92 views

subtract a fixed amount from a number in an xml with find/replace in notepad++

It seems like I can't understand much of the notepad++ wiki, and I can't find similar question here. The problem: type="0" x="184" y="698" w="245" h="7" So I'm trying to add or subtract an amount ...
-2
votes
2answers
171 views

Remove all extra text before and after domain string per line in notepad++

I would like to take the following strings in and only keep the domains and <br> tags So: 390796,domain1.com,1,0,0,false<br> 390796,43domain2.org,2,0,0,false<br> ...
1
vote
1answer
71 views

Find & Replace in notepad++ with regex

I need to convert some old VB.net code to c#, and to speed things up I was planning to use regex. For instance, in this piece of code: if (Request.ServerVariables("SERVER_NAME").StartsWith("user")) ...
0
votes
2answers
1k views

Notepad++: How to remove text after second occurrence of comma using Regex

I've got text lines like string1,email,string2,string3 How can I use regex to return the following? string1,email I want to remove everything that comes after the 2nd comma.
1
vote
1answer
38 views

Making Notepad++'s $ match the end of the file instead of the end of the line

I was wondering if there was a way of matching the end of a file in Notepad++ other than putting myself there a special combination of characters. By default, $ seems to match the end of the line, and ...
0
votes
1answer
47 views

To Search data in a given range in notepad++

I have data like this: ABC DEF 123 456 STU 567-89 XYZ 234 123 345 789 ERT FGHT TYUI FGHT 456 HHKHFS NOR TEST TEST1 5678 NOT TEST Trying to format it as below output in which I can use to ...
0
votes
1answer
102 views

How do I select a range of lines until I reach a line containing specific words?

How do I select a range of lines until I reach a line containing specific words? For example, start at line 1 and select every line until you get to a line with the words: hello world
1
vote
1answer
42 views

Notepad++ 6.5 regex replace with same regex

I want to replace a regex based on a date string with the same one and a new line. The problem is that when I write the sintax like this: Replace with : (\1)\n Or like this : Replace with: ($1)\n ...
0
votes
2answers
129 views

Remove all but URL-s from XML files

So i have a XML with bunch of links. What i want is to remove everything that is not an URL. For example currently it looks something like this: <update extract="1"> ...
1
vote
3answers
24 views

End of line - add a pipe |

Can someone explain how at the end of each line I place a pipe with regex? Using find and replace in notepad ++ I'm trying to place content | Cheers!
2
votes
2answers
63 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
1
vote
1answer
48 views

How do I inverse my selection in “find and replace”?

%%& BUNCH OF TEXT &%%ASDA WR ASDAR ASDSETSF ASDSADGSRT %%& EVEN MORE TEXT &%% aSDAER ASD %%&TEXT HERE TOO &%% I'm trying to remove all of the junk text between the "&%%" ...
0
votes
1answer
204 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 ...
1
vote
2answers
270 views

Notepad++ Regex Help in cleaning up file

I've got a csv file (the column separator is "<;>" ,the text delimiter is the double quote and the row separator "crlf") of more than 18000 lines. However,many of the data contained within the ...
2
votes
2answers
1k 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 ...
0
votes
1answer
52 views

How I can delete the lines that contain “ + ”?

I want to delete the lines which containing + . I tried some codes but my effort wasn't successful. Before: DET NOUN . PRON CONJ NOUN ADP PRON VERB PRT VERB ADP NOUN . DET VERB VERB . ADP CONJ ...
0
votes
1answer
48 views

How to join strings in the lines that ended with special string?

I have a text in this format: NP00000 Fp NP00000 Fp NP00000 Fp NP00000 Fc NCMS000 AQ0MS0 Fp NP00000 Fc NCMS000 ...
2
votes
2answers
172 views

Find and Replace one character in the middle in Notepad++

I am trying to find and replace an arrangement of 6 letters\special character\numbers. For example they appear as such in my original code DEVICE_NAME","CB2_02 DEVICE, DEVICE_NAME","CB3_09 DEVICE, ...
0
votes
1answer
46 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
1answer
70 views

Replace first instance in Notepad++ using Regex

I'm completely new to RegEx and could really use some help with my dilemma. I have a large text file of IP addresses and corresponding hosts: 157.55.33.47 msnbot-157-55-33-47.search.msn.com ...
-1
votes
1answer
51 views

Using Notepad++ to replace only a part of the text

In a html file I want to replace <div id="pe1" style="display:none"> <div id="pe2" style="display:none"> .... <div id="pe20" style="display:none"> with <div id="pe1" ...
0
votes
1answer
407 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 ...
0
votes
1answer
47 views

How do I process this data with a regex in Notepad++?

I have a database dump, looking like this: ;i:23;s:18:"Product Name1";i:24;s:27:"Product Name2";i:25;s:15:"Product Name3"; [...] All I'd like to get in Notepad++ is this: Product ...
0
votes
0answers
26 views

how I change this regex to work in these texts [duplicate]

3 days ago a friend give me a code to keep some sentences and delete other sentences that they were not need in notepad ++. Today My teacher told me that this code don't work for all of sentences and ...
-2
votes
1answer
170 views

Extract Mobile Numbers from text file Starting with 0300 or 0321. Like 0300-XXXXXXX, 0321-XXXXXXX [closed]

How can I extract only mobile numbers from my text file? Mobile numbers format is 03xx-xxxxxxx. Text is something like this: 1 Mr.Pervaiz Ahmad Latifi Rajput Traders, W/571, Ratta Road, Near ...
1
vote
0answers
40 views

Script to port specifc data from doc1 (notepad++) to specific place(s) in doc2

I really appreciate your help with a windows script or regex function that ports specific data from doc1 (xml in notepad++) to specific place(s) in doc2 (notepad++). I'm running win8. Thank you in ...
3
votes
1answer
115 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 ...
1
vote
3answers
9k views

Using wildcard search/replace in Notepad++

Here's my problem: In a .txt file, I need to find and replace thousands of instances of syntax like this: (see (a053007djfgspwdf)) or (see (a053007djfgspwdf) and (a54134xsedgeg)) or (see ...
0
votes
1answer
6k views

Delete Text before and after a specific character in Notepad++

i want to extract a string which is between two quotation marks, deleting everything before and after the quotation marks, including themselves. For example this: 6 6 "The Socratic Method" ...
0
votes
2answers
190 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
76 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 ...