Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: quick regex help for multiple ORby mwah (Hermit) |
on May 13, 2008 at 17:34 UTC ( [id://686325]=note: print w/replies, xml ) | Need Help?? |
The stated problem is not exactly regexp friendly ;-) (to be solved in a single expression), as has been stated by others. You are looking for a combination of conditions, a problem which might be solved better per parser or similar stuff. BTW, you can set conditions during the regexp run and jump on the result afterwards. This might be handy if you have several conditions which depend linearly on the input data, sth. like:
Regards mwa
In Section
Seekers of Perl Wisdom
|
|