Help with regular expression in python
John Gordon
gordon at panix.com
Thu Aug 18 16:00:09 EDT 2011
In <mailman.191.1313697016.27778.python-list at python.org> Matt Funk <matze999 at gmail.com> writes:
> 1.002000e+01 2.037000e+01 2.128000e+01 1.908000e+01 1.871000e+01 1.914000e+01
> instance_linetype_pattern_str = '([-+]?(\d+(\.\d*)?|\.\d+)([eE][-+]?\d+)?)
> {32}'
> instance_linetype_pattern = re.compile(instance_linetype_pattern_str)
Does your regexp account for the space in between each float? I can't tell
due to your post having a linebreak at a really inconvenient spot.
--
John Gordon A is for Amy, who fell down the stairs
gordon at panix.com B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"
More information about the Python-list
mailing list