Got more questions? Find advice on: ASP | SQL | XML | Windows
in Search
Welcome to RegexAdvice Sign in | Join | Help

Browse by Tags

All Tags » regex » subsequent matching
  • Back Reference Overwrites Changes

    I ran into an interesting situation where back references overwrite previous changes in a regular expression. I needed a regular expression that updated a pattern but also checked for something that comes before the pattern.  It should leave everything before the pattern as it was before the updates.  There can be multiple matches of ...
    Posted to Construction Advice (Forum) by AProgrammer on November 20, 2007
  • Re: Identifying subsequent lines using regular expressions...

    ash_enigma:hi, Is there any way in which i can identify whether a regular expression pattern appearing only on subsequent lines?  Yes, I believe there is.  I came up with this solution. I used this as my sample data # text line 1 # text line 2 text line 3 # text line 4 # text line 5 And this regex on the sample ...
    Posted to Construction Advice (Forum) by Brendan on March 23, 2007