good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^3: Match something that does not matchby haukex (Archbishop) |
on Feb 15, 2020 at 21:41 UTC ( [id://11113011]=note: print w/replies, xml ) | Need Help?? |
Though it works, I still don't get it :-( The . matches anything (except newline), and (?!$pat) means "the next thing can't be $pat", so taken all together it really just means "match any number of characters, where none of these characters may be the first character of $pat".
In Section
Seekers of Perl Wisdom
|
|