in reply to lookbehind
the lookbehind syntax is as follows:
0-width positive lookbehind assertion: (?<=pattern)
0-width negative lookbehind assertion: (?<!pattern)
however, i think what you want in this case is actually a negative lookahead assertion like the following:
m!^<TR bgcolor=.*>(?!(?:re:\s*)+)([^<]*)</a>!i
also, the 'o' modifier is not very useful in your examples, since there are no variables in the regexp to interpolate.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: lookbehind
by httptech (Chaplain) on May 07, 2000 at 22:56 UTC | |
by mdillon (Priest) on May 07, 2000 at 23:28 UTC | |
by httptech (Chaplain) on May 08, 2000 at 03:30 UTC |