Click here to Skip to main content
15,562,550 members
Home / Discussions / Regular Expressions
   

Regular Expressions

 
AnswerRe: How to remove an & in the following expressions Pin
k505421-Nov-22 11:21
mvek505421-Nov-22 11:21 
GeneralRe: How to remove an & in the following expressions Pin
Victor Nijegorodov22-Nov-22 4:32
Victor Nijegorodov22-Nov-22 4:32 
AnswerRe: How to remove an & in the following expressions Pin
Richard MacCutchan21-Nov-22 22:50
mveRichard MacCutchan21-Nov-22 22:50 
GeneralRe: How to remove an & in the following expressions Pin
Victor Nijegorodov22-Nov-22 3:41
Victor Nijegorodov22-Nov-22 3:41 
GeneralRe: How to remove an & in the following expressions Pin
Richard MacCutchan22-Nov-22 4:13
mveRichard MacCutchan22-Nov-22 4:13 
GeneralRe: How to remove an & in the following expressions Pin
Victor Nijegorodov22-Nov-22 4:59
Victor Nijegorodov22-Nov-22 4:59 
AnswerRe: How to remove an & in the following expressions Pin
Victor Nijegorodov22-Nov-22 5:05
Victor Nijegorodov22-Nov-22 5:05 
QuestionRegex search to find and remove consecutive lines which end with same characters Pin
Member 1582987913-Nov-22 6:05
Member 1582987913-Nov-22 6:05 
Hello,
I need to write a regular expression search which will locate when a line ends with the same text as the preceding line, but does not have the same first 10 characters. So in this example:

[11:12:21] Hello this is Tom. How are you?
[11:14:08] Hello this is Tom. How are you?

. . . I would need to search for consecutive lines for which the text was the same after the time entered in brackets.

I know that this search:

FIND: ^.{11}(.*)$
REPLACE; $1

. . . will locate the first 11 characters and remove them.

This search:

FIND: ^((.{10}).*)(?:\r?\n\2.*)+
REPLACE: $1

. . . will locate lines where the first 10 characters are the same and remove them.

But I can't figure out how to structure the search so it checks the text from position 11 to the end of the line, and then checks if the text on the next line from the 11th character to the end of the line is the same.
AnswerRe: Regex search to find and remove consecutive lines which end with same characters Pin
jschell14-Nov-22 7:43
jschell14-Nov-22 7:43 
QuestionRemoving + - chars if lines are starting with them only Pin
montaigne gremo2-Nov-22 3:32
montaigne gremo2-Nov-22 3:32 
AnswerRe: Removing + - chars if lines are starting with them only Pin
jschell14-Nov-22 7:39
jschell14-Nov-22 7:39 
QuestionFind the 4th last object in this campaign Pin
Michael Oct202220-Oct-22 4:05
Michael Oct202220-Oct-22 4:05 
AnswerRe: Find the 4th last object in this campaign Pin
Richard Deeming20-Oct-22 5:28
mveRichard Deeming20-Oct-22 5:28 
GeneralRe: Find the 4th last object in this campaign Pin
Michael Oct202220-Oct-22 6:04
Michael Oct202220-Oct-22 6:04 
QuestionSplitting with optionally second line Pin
G-Team2329-Sep-22 3:47
G-Team2329-Sep-22 3:47 
AnswerRe: Splitting with optionally second line Pin
Richard Deeming29-Sep-22 4:11
mveRichard Deeming29-Sep-22 4:11 
GeneralRe: Splitting with optionally second line Pin
G-Team2330-Sep-22 1:19
G-Team2330-Sep-22 1:19 
QuestionIs there a way to come up with a regular expression for this? Pin
fame_crane23-Sep-22 5:28
fame_crane23-Sep-22 5:28 
AnswerRe: Is there a way to come up with a regular expression for this? Pin
Gerry Schmitz23-Sep-22 6:56
mveGerry Schmitz23-Sep-22 6:56 
Questionremove parenthese from function like string Pin
Michael Eckstein17-Sep-22 9:56
Michael Eckstein17-Sep-22 9:56 
AnswerRe: remove parenthese from function like string Pin
moxol17-Sep-22 11:43
moxol17-Sep-22 11:43 
GeneralRe: remove parenthese from function like string Pin
Michael Eckstein18-Sep-22 5:55
Michael Eckstein18-Sep-22 5:55 
GeneralRe: remove parenthese from function like string Pin
moxol18-Sep-22 8:28
moxol18-Sep-22 8:28 
GeneralRe: remove parenthese from function like string Pin
Michael Eckstein18-Sep-22 9:01
Michael Eckstein18-Sep-22 9:01 
GeneralRe: remove parenthese from function like string Pin
moxol18-Sep-22 10:19
moxol18-Sep-22 10:19 

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.