"be consistent" | |
PerlMonks |
Re: Regex OR'ingby tye (Sage) |
on Jul 28, 2000 at 07:16 UTC ( [id://24796]=note: print w/replies, xml ) | Need Help?? |
Well, I'm still not clear, but this might work:
I don't see why you need to match nothing at the start of the string so matching nothing only at the end of the string might fix your problem. You can use \Z instead of $ is you are paranoid about trailing newlines and don't care about not working on old versions of Perl.
In Section
Seekers of Perl Wisdom
|
|