John Machin sjmachin at
Sun Jan 12 10:31:21 CET 2003

"Cousin Stanley" <CousinStanley at> wrote in message news:<avq0mi$i7pnf$1 at>...
> Would a simple non-re version work ???

Quite possibly. However not only does the code you provided not work,
as another poster has already pointed out, on your sample data, but
also ...

> for xLine in list_lines :
>     last_char = xLine[ len( xLine ) - 1 : ]

... it is also unnecessarily slow. You might like to consider the
      last_char = xLine[-1:]

More information about the Python-list mailing list