Using re to get data from text file: SOLVED

Andrew Dalke adalke at mindspring.com
Fri Sep 10 21:08:17 CEST 2004


Jocknerd wrote:
> pattern = re.compile(r'^(.*\D\d+\D\d+)\D(.*)\D(.*\d+)\D(.*)\D(.*\d+)(.*)$')

Though I think that's esthetically poor.  The .* groups
will cause a lot of backtracking.

				Andrew
				dalke at dalkescientific.com




More information about the Python-list mailing list