matching patterns after regex?

Steven D'Aprano steve at
Wed Aug 12 14:23:25 CEST 2009

On Wed, 12 Aug 2009 05:12:22 -0700, Martin wrote:

> I tried
> re.findall((\w+COORDINATE).*\s+VALUE\s+=\s([\d\.\w-]+),s)

You need to put quotes around strings.

In this case, because you're using regular expressions, you should use a 
raw string:


will probably work.


More information about the Python-list mailing list