We use our own parenthesis ...
With use of the /g regex modifier, capturing parentheses are not needed (although they do no harm): in list context, all matched sub-strings are returned.
c:\@Work\Perl>perl -wMstrict -MRegexp::Common -le "$_ = '10,101,110.11010110'; ;; print qq{'$_'} for /$RE{num}{real}/g; " '10' '101' '110.11010110'
The absence of a keep option tells the module not to capture anything.
But I thought that the idea behind the use of -keep was that justrajdeep wanted to "... divide [the extracted numbers] into floats/integer etc.", i.e., classify them, and for this the capture of number components (sign, whole number, fractional part, etc.) by -keep could be made to work nicely.
... group and sep options are not specified. They only apply to separations within a single number.
justrajdeep seems to want to handle comma-separated, grouped whole numbers (and binary ones at that), but I agree that his or her requirements are a bit confusing, at least to me.
Give a man a fish: <%-{-{-{-<
In reply to Re^6: Using Regexp::Common
by AnomalousMonk
in thread Using Regexp::Common
by justrajdeep
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |