Don't ask to ask, just ask | |
PerlMonks |
Re: Dynamic Regular Expressionby jwkrahn (Abbot) |
on Dec 10, 2020 at 02:19 UTC ( [id://11124923]=note: print w/replies, xml ) | Need Help?? |
In your example K1, ASC and GEB are anchored at the beginning of the string while N1 is not. How do you determine which strings should match at the beginning of the string? Your pattern ends with a . which will match any character except after the end of the string!
In Section
Seekers of Perl Wisdom
|
|