Do you know where your variables are? | |
PerlMonks |
Re: Boolean operators in PERL regexp?by ikegami (Patriarch) |
on Feb 24, 2005 at 19:02 UTC ( [id://434196]=note: print w/replies, xml ) | Need Help?? |
I recommend against using these (a parser would work better), but here's a snippet from my scratchpad:
NOT must be anchored on both ends, but it doesn't have to be with ^ and $. AND doesn't have to be anchored, but if the start is anchored (with ^ or by some other means), it should speed up the case where there is no match. The .* in AND may need to be replaced so it doesn't look too far ahead.
In Section
Seekers of Perl Wisdom
|
|