Perl: the Markov chain saw | |
PerlMonks |
Re^2: A Quick Regex Questionby Nkuvu (Priest) |
on Oct 09, 2006 at 21:46 UTC ( [id://577274]=note: print w/replies, xml ) | Need Help?? |
That was my first thought also, but I'm not positive that the original poster meant this. Instead of p or e or r or l, I thought that the requirement was p and e and r and l (in any order). So I would expect that "orange" wouldn't be a valid match, given that it doesn't contain 'p' and 'l'. The given character class does, of course, match "orange" just fine.
In Section
Seekers of Perl Wisdom
|
|