Perl: the Markov chain saw | |
PerlMonks |
Re: how to extract string by possible groupings?by LanX (Saint) |
on Jun 02, 2014 at 14:40 UTC ( [id://1088268]=note: print w/replies, xml ) | Need Help?? |
I think you are confused about how groupings work
each opening bracket starts a grouping. Groupings that don't match will be undef ! You can use extended regex (?:PATTERN) for clustering but not grouping to skip an index
update... or even avoid (...) where you don't need any clustering at all (like in your or-branches).
Cheers Rolf (addicted to the Perl Programming Language)
In Section
Seekers of Perl Wisdom
|
|