Stack experiment
irstas at gmail.com
irstas at gmail.com
Tue Apr 3 12:20:29 EDT 2007
On Apr 3, 7:14 pm, "Richard Brodie" <R.Bro... at rl.ac.uk> wrote:
> <kyoso... at gmail.com> 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', '
*', '']
More information about the Python-list
mailing list