Howdy:
I have a statement and I'm trying to see if
I understand what it is really is doing (not my code).
The code does this:
[snip]
result ~ '^ *-?[0-9]+[.]?[0-9]* *\$'
[/snip]
I break out the meaning as this:
[snip example]
^ = beginning of line plus a white space
*- = everything up to, and including, to the ' - '
?[0-9] = 1 or 0 times of a number
+[.] = 1 or more times any character
?[0-9]* *\$ = 1 or more times any number plus any other character and
a white space and then any MORE characters to the
end of the line
[/snip example]
How far off am I?
Thanks!
-X