in reply to Re^4: Using Regexp::Common
in thread Using Regexp::Common
OUTPUT:use strict; use warnings; use Regexp::Common; $_ = '10,101,110.11010110 '; local $, = "\n"; print /($RE{num}{real})/g;
Note that the group and sep options are not specified. They only apply to separations within a single number. The absence of a keep option tells the module not to capture anything. We use our own parenthesis to capture exactly what we want. We use the /g match option to find (and capture) all the matches.10 101 110.11010110
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Using Regexp::Common
by AnomalousMonk (Archbishop) on Sep 20, 2015 at 21:05 UTC | |
by BillKSmith (Monsignor) on Sep 20, 2015 at 22:36 UTC |