Click here to Skip to main content
15,920,217 members
Home / Discussions / Regular Expressions
   

Regular Expressions

 
AnswerRe: Regular Expression To Extract Everything Including the String And Before The First Space Character Pin
Richard MacCutchan29-Aug-19 20:43
mveRichard MacCutchan29-Aug-19 20:43 
GeneralRe: Regular Expression To Extract Everything Including the String And Before The First Space Character Pin
Member 1457241530-Aug-19 3:23
Member 1457241530-Aug-19 3:23 
GeneralRe: Regular Expression To Extract Everything Including the String And Before The First Space Character Pin
Member 1457241530-Aug-19 3:48
Member 1457241530-Aug-19 3:48 
GeneralRe: Regular Expression To Extract Everything Including the String And Before The First Space Character Pin
Richard MacCutchan30-Aug-19 4:35
mveRichard MacCutchan30-Aug-19 4:35 
GeneralRe: Regular Expression To Extract Everything Including the String And Before The First Space Character Pin
Member 1457241530-Aug-19 5:42
Member 1457241530-Aug-19 5:42 
GeneralRe: Regular Expression To Extract Everything Including the String And Before The First Space Character Pin
Member 1457241530-Aug-19 5:47
Member 1457241530-Aug-19 5:47 
GeneralRe: Regular Expression To Extract Everything Including the String And Before The First Space Character Pin
Member 1457241530-Aug-19 7:06
Member 1457241530-Aug-19 7:06 
GeneralRe: Regular Expression To Extract Everything Including the String And Before The First Space Character Pin
Richard MacCutchan30-Aug-19 21:42
mveRichard MacCutchan30-Aug-19 21:42 
QuestionRegex Expression to extract everything following a string and before a space Pin
Member 1457241529-Aug-19 6:30
Member 1457241529-Aug-19 6:30 
AnswerRe: Regex Expression to extract everything following a string and before a space Pin
Richard MacCutchan29-Aug-19 6:55
mveRichard MacCutchan29-Aug-19 6:55 
GeneralRe: Regex Expression to extract everything following a string and before a space Pin
Richard Deeming29-Aug-19 7:04
mveRichard Deeming29-Aug-19 7:04 
GeneralRe: Regex Expression to extract everything following a string and before a space Pin
Richard MacCutchan29-Aug-19 8:44
mveRichard MacCutchan29-Aug-19 8:44 
GeneralRe: Regex Expression to extract everything following a string and before a space Pin
Member 1457241529-Aug-19 8:36
Member 1457241529-Aug-19 8:36 
GeneralRe: Regex Expression to extract everything following a string and before a space Pin
Richard MacCutchan29-Aug-19 8:47
mveRichard MacCutchan29-Aug-19 8:47 
GeneralRe: Regex Expression to extract everything following a string and before a space Pin
Member 1457241529-Aug-19 9:29
Member 1457241529-Aug-19 9:29 
AnswerRe: Regex Expression to extract everything following a string and before a space Pin
Richard Deeming29-Aug-19 7:10
mveRichard Deeming29-Aug-19 7:10 
GeneralRe: Regex Expression to extract everything following a string and before a space Pin
Member 1457241529-Aug-19 8:00
Member 1457241529-Aug-19 8:00 
GeneralRe: Regex Expression to extract everything following a string and before a space Pin
Member 1457241529-Aug-19 8:03
Member 1457241529-Aug-19 8:03 
GeneralRe: Regex Expression to extract everything following a string and before a space Pin
Richard Deeming29-Aug-19 8:50
mveRichard Deeming29-Aug-19 8:50 
GeneralRe: Regex Expression to extract everything following a string and before a space Pin
Member 1457241529-Aug-19 9:12
Member 1457241529-Aug-19 9:12 
GeneralRe: Regex Expression to extract everything following a string and before a space Pin
Richard Deeming29-Aug-19 9:53
mveRichard Deeming29-Aug-19 9:53 
GeneralRe: Regex Expression to extract everything following a string and before a space Pin
Member 1457241529-Aug-19 10:05
Member 1457241529-Aug-19 10:05 
GeneralRe: Regex Expression to extract everything following a string and before a space Pin
phil.o29-Aug-19 19:29
professionalphil.o29-Aug-19 19:29 
GeneralRe: Regex Expression to extract everything following a string and before a space Pin
Richard Deeming30-Aug-19 3:05
mveRichard Deeming30-Aug-19 3:05 
QuestionMatching separate regions Pin
Member 1450443318-Jun-19 4:10
Member 1450443318-Jun-19 4:10 
Hi,
I'm using Notepad++ to do some Regex replacements and have come up against a problem I can't solve.
I'm looking to match a region between two fixed strings inclusive (called <startstring> and <endstring> for the sake of example). The problem I have is these strings appear multiple times throughout, but I want to match EACH instance, rather than one match from the very first <startstring> to the last <endstring>. They may or may not be over many lines. For example:

<startstring>

...text body...

<endstring>

...other text...

<startstring>

...text body...

<endstring>

...other text...

<startstring>

...text body...

<endstring>

I need my Regex to make 3 separate matches, rather than 1 big match which includes all the ..other text... which I need to be left intact.

The above needs to work irrespective of whether the <startstring> and <endstring> are on the same line or many lines apart.

Thanks in advance.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.