in reply to parsing a line of text with inconsistent delimiters
/ [A-Z]+ # WB \(\d+,\d+\) # (1,2) \s*=\s* # = (?: # start non-capturing group \d+\.\d+, # a float followed by comma \s*(\d+\.\d+),? # capture a float (followed by comma?) ) # end-group /gx
-David
Update: fixed a typo.
Update2: and another, thanks naikonta.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: parsing a line of text with inconsistent delimiters
by naikonta (Curate) on Sep 13, 2007 at 16:02 UTC |