String pattern matching

Jim Lewis jimlewis at miclog.com
Sun Apr 16 07:53:31 EDT 2006


>You can do this with a regular expression...

I tried the plain RE approach and found it no faster than my
direct-coded version. Anyone have any ideas on how to code this problem
elegantly without RE? My code is long and cumbersome - 200 lines! Speed
is my primary concern but low LOC would be nice of course. The sezman
approach above seems a bit complex.




More information about the Python-list mailing list