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 » backreference » javascript regular expressions
  • 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