in reply to Re: Regex'ing backreferences
in thread Regex'ing backreferences
Note that (?:stuff) is a non-grouping set of parens, and (?!stuff) is a negative assertion./foo((?:(?!bar).)*)foo/
UPDATE
I noticed a while ago that my RE was incorrect, decided to leave it for someone else to find and mention. But nobody did so I will mention that I forgot a ?:
/foo((?:(?!bar).)*?)foo/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE (tilly) 2: Regex'ing backreferences
by japhy (Canon) on Sep 21, 2000 at 15:56 UTC | |
by tilly (Archbishop) on Sep 21, 2000 at 16:10 UTC | |
by tilly (Archbishop) on Sep 21, 2000 at 18:23 UTC | |
by japhy (Canon) on Sep 21, 2000 at 18:28 UTC |