On Apr 3, 7:14 pm, "Richard Brodie" <[EMAIL PROTECTED]> wrote: > <[EMAIL PROTECTED]> wrote in message > >There may be something wrong with the "re" code in your example, > >but I don't know enough about that to help in that area. > > There is a stray leading space in it.
Nah, I'd say there's a stray ([^0-9]) after the space. With just space in it (same as basic split) one would get the tokens 56, 47, +, 2 and *. Without the space one would get: ['56', ' ', '47', ' + ', '2', ' *', ''] -- http://mail.python.org/mailman/listinfo/python-list