Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #11804

Re: Help with regular expression in python

From John Gordon <gordon@panix.com>
Newsgroups comp.lang.python
Subject Re: Help with regular expression in python
Date 2011-08-18 20:00 +0000
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <j2jr09$sp3$1@reader1.panix.com> (permalink)
References <mailman.191.1313697016.27778.python-list@python.org>

Show all headers | View raw


In <mailman.191.1313697016.27778.python-list@python.org> Matt Funk <matze999@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@panix.com              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Help with regular expression in python Matt Funk <matze999@gmail.com> - 2011-08-18 13:49 -0600
  Re: Help with regular expression in python John Gordon <gordon@panix.com> - 2011-08-18 20:00 +0000

csiph-web