Slight correction to my last post:

: my $float_re = qr{
: 
:         \d+\.\d+  # Matches "2.3"
:       | \d+\.     # Matches "2."
:       |    \.=d+  # Matches ".2"
:       | \d+       # Matches "2"
: 
: }x; # "x" means "extended regex syntax"

In the third line of the first regex, "=" should be "\".

-- tdk

Reply via email to