Regular expression, "except end of string", question.
Peter Hansen
peter at engcorp.com
Wed Jun 16 22:21:45 EDT 2004
Derek Basch wrote:
> Thanks Peter and David,
>
> It always comforting to know that a really simple solution exists after
> you waste a couple of hours messing with Regular Expressions. :)
And, usually, there's an even simpler solution than the first
couple of responses, as David #2 showed. :-) His has the added
advantage of not building a temporary list too.
-Peter
More information about the Python-list
mailing list