[Melbourne-pm] How to parse n matches out of a string?

Damian Conway damian at conway.org
Sat Mar 26 04:30:09 PDT 2016


Nathan Bailey <web at polynate.net> asked:

> Is there a 'best practice' idiom for parsing out multiple matches from a
> string?
>

my @matches =  $string =~ m{ (Match) }gx;

HTH,
Damian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/melbourne-pm/attachments/20160326/5252e522/attachment.html>


More information about the Melbourne-pm mailing list