Click here to Skip to main content
15,848,904 members
Home / Discussions / Regular Expressions
   

Regular Expressions

 
GeneralRe: RegEx remove duplicate need help Pin
trønderen11-Aug-23 13:21
trønderen11-Aug-23 13:21 
GeneralRe: RegEx remove duplicate need help Pin
jschell14-Aug-23 7:01
jschell14-Aug-23 7:01 
QuestionRegex search and replace? Tabs ... Pin
Member 1483514610-Jul-23 10:57
Member 1483514610-Jul-23 10:57 
AnswerRe: Regex search and replace? Tabs ... Pin
jschell14-Aug-23 7:13
jschell14-Aug-23 7:13 
GeneralHow to insert a space at the beginning of a line in a "for next" code loop (.NET regular expressions) Pin
Piotr Przeklasa4-Jul-23 3:20
Piotr Przeklasa4-Jul-23 3:20 
GeneralRe: How to insert a space at the beginning of a line in a "for next" code loop (.NET regular expressions) Pin
Andre Oosthuizen5-Jul-23 2:15
mveAndre Oosthuizen5-Jul-23 2:15 
GeneralRe: How to insert a space at the beginning of a line in a "for next" code loop (.NET regular expressions) Pin
Richard MacCutchan5-Jul-23 3:21
mveRichard MacCutchan5-Jul-23 3:21 
GeneralRe: How to insert a space at the beginning of a line in a "for next" code loop (.NET regular expressions) Pin
jschell5-Jul-23 6:31
jschell5-Jul-23 6:31 
Piotr Przeklasa wrote:
How to insert a space at the beginning of a line in a "for next" code loop (.NET regular expressions)


Nope. Wrong way to attempt this.

This is a common assumption that regex can handle this but the very nature of regex processing precludes it.

You need to do it with regular code.

The limits of using regex start showing up with recursion problems. For example the following.


for
  line of code
  for
    line of code
  next
  line of code
  line of code
next

QuestionNeed help with Regular expression Pin
Member 1601263423-May-23 10:36
Member 1601263423-May-23 10:36 
AnswerRe: Need help with Regular expression Pin
PIEBALDconsult23-May-23 10:39
mvePIEBALDconsult23-May-23 10:39 
AnswerRe: Need help with Regular expression Pin
jschell24-May-23 6:58
jschell24-May-23 6:58 
QuestionRedirection with exclusions RegEx Pin
Member 1598311319-Apr-23 4:07
Member 1598311319-Apr-23 4:07 
QuestionI need help with a complex regex Pin
Member 127465326-Apr-23 4:57
Member 127465326-Apr-23 4:57 
AnswerRe: I need help with a complex regex Pin
Terry R 202312-Apr-23 11:53
Terry R 202312-Apr-23 11:53 
AnswerRe: I need help with a complex regex Pin
Richard MacCutchan12-Apr-23 21:41
mveRichard MacCutchan12-Apr-23 21:41 
GeneralRe: I need help with a complex regex Pin
jschell13-Apr-23 6:29
jschell13-Apr-23 6:29 
GeneralRe: I need help with a complex regex Pin
Richard MacCutchan13-Apr-23 6:52
mveRichard MacCutchan13-Apr-23 6:52 
GeneralRe: I need help with a complex regex Pin
jschell14-Apr-23 12:28
jschell14-Apr-23 12:28 
GeneralRe: I need help with a complex regex Pin
Member 1274653217-Apr-23 21:50
Member 1274653217-Apr-23 21:50 
GeneralRe: I need help with a complex regex Pin
Richard MacCutchan17-Apr-23 23:04
mveRichard MacCutchan17-Apr-23 23:04 
QuestionWhat is the regular expression for this string? Pin
Member 1595912122-Mar-23 12:29
Member 1595912122-Mar-23 12:29 
AnswerRe: What is the regular expression for this string? Pin
Richard MacCutchan23-Mar-23 0:12
mveRichard MacCutchan23-Mar-23 0:12 
GeneralRe: What is the regular expression for this string? Pin
k505423-Mar-23 4:52
mvek505423-Mar-23 4:52 
GeneralRe: What is the regular expression for this string? Pin
Richard MacCutchan23-Mar-23 4:55
mveRichard MacCutchan23-Mar-23 4:55 
AnswerRe: What is the regular expression for this string? Pin
jschell23-Mar-23 7:24
jschell23-Mar-23 7:24 

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.