in reply to Regex matching next occurrence or to the end of line.
I may have misunderstood what you are asking for, but I think the solution to your problem is look-ahead assertions.
m< (?: # A char that is: [^\$] # Not a $ | # Or \$ (?! {= ) # A $ not followed by {= )+ # Many times >x;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex matching next occurrence or to the end of line.
by nabeenj (Initiate) on Feb 04, 2015 at 18:03 UTC |