in reply to Re^4: Using Regexp::Common
in thread Using Regexp::Common
The problem I and apparently others had with your example was that if , (comma) is used as both a number separator and as a three-digit, whole-number group separator, the string '10,101,110.11010110' is ambiguous. Is it a single binary real 10,101,110.11010110, the whole-number portion of which has three groups? Is it a binary integer 10, followed by a binary real 101,110.11010110? Or is it a binary integer 10, followed by a binary integer 101, followed by a binary real 110.11010110? Or how about a grouped binary integer 10,101 followed by a binary real 110.11010110?
Trying to use a comma as both a number separator and a group separator seems like a really bad idea. Trying to parse data in which a comma is used in this way seems like a nightmare.
Give a man a fish: <%-{-{-{-<
|
|---|