Don't ask to ask, just ask | |
PerlMonks |
Re^3: how to select which words have Y and Wby jethro (Monsignor) |
on Dec 26, 2013 at 10:53 UTC ( [id://1068411]=note: print w/replies, xml ) | Need Help?? |
UPDATE: Add a print statement. And the regex should be /x|y/, i.e. you want to find an x or an y, not x followed by y. Another possible regex that would work would use a character class: /[xy]/
In Section
Seekers of Perl Wisdom
|
|