Perl Monk, Perl Meditation | |
PerlMonks |
Re: regex and substringsby Corion (Patriarch) |
on Jul 23, 2018 at 14:36 UTC ( [id://1219109]=note: print w/replies, xml ) | Need Help?? |
You could for example implement the criteria using these two rules:
Then you only need to find out how to construct an "or" condition for regular expressions and find implementations for "starts with", "ends with" and "something else". See perlre for ideas on how to implement these.
In Section
Seekers of Perl Wisdom
|
|