good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^4: regex at word boundaryby davido (Cardinal) |
on Dec 08, 2005 at 05:03 UTC ( [id://515130]=note: print w/replies, xml ) | Need Help?? |
(?!) explained: From perlre: "A zero-width negative look-ahead assertion. For example /foo(?!bar)/ matches any occurrence of "foo" that isn't followed by "bar"." So in other words, (?!) is a negative lookahead assertion that "must not match nothing" (an impossibility). YAPE::Regex::Explain describes it simply like this:
Dave
In Section
Seekers of Perl Wisdom
|
|