Keep It Simple, Stupid | |
PerlMonks |
Re: regex capturing problemby stephane (Monk) |
on Mar 21, 2002 at 13:41 UTC ( [id://153315]=note: print w/replies, xml ) | Need Help?? |
Check it again: your first idea doesnt work either for d'aujourd'hui (but does for aujourd'hui, unless I am myself doing some typos ;-) The problem there is that your regexp is not.. what should I say.. "recursive": /^(\w+')([\w-]+)$) can only return two matches (i.e.: $1 and $2 and not $1, $2, $3 to $n, etc)
In Section
Seekers of Perl Wisdom
|
|