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

Search

You searched for the word(s):
< 1 second(s)
  • Match all 1s not enclosed in parentheses

    What I need is pretty simple, but I&#39;m having trouble visualizing how to get it done with one regular expression. I&#39;m using Perl and I want to match all occurrences of the digit 1 that isn&#39;t within parentheses. Some sample input:36(1)1/GDP3(1)/G.3-H;2-341/G FC1(1)2/SAC/BG.2-3So #1, #3, and #4 should match, but #2 shouldn&#39;t.
    Posted to Construction Advice (Forum) by AKR on February 15, 2010