in reply to Re^2: sorry, didn't ask the right question about this regex yesterday (?!)
in thread sorry, didn't ask the right question about this regex yesterday
Hello misterperl,
I'm not sure how that works exactly...
From “Look-Around Assertions” in perlre#Extended-Patterns:
- (?!pattern)
A zero-width negative look-ahead assertion. For example /foo(?!bar)/ matches any occurrence of "foo" that isn't followed by "bar".
If you have access to the Camel Book, see also Chapter 5: Pattern Matching, section “Fancy Patterns,” subsection “Lookaround Assertions.”
Hope that helps,
| Athanasius <°(((>< contra mundum | Iustus alius egestas vitae, eros Piratica, |
|
|---|