> I'm surprised that splitting on \b doesn't work as expected, so it
> might be that re.split has been defined only to split on one or more
> characters. Is it something that should it be 'fixed'?
Thats's my main doubt: is this a bug or not?
[]'s
- Walter
--
http://mail.python.org/mailman/listinf
On Jun 19, 8:46 pm, André Malo <[EMAIL PROTECTED]> wrote:
> * Walter Cruz wrote:
> > irb(main):001:0>"walter ' cruz".split(/\b/)
> > => ["walter", " ' ", "cruz"]
>
> > and in php:
>
> > Array
> > (
> > [0] =>
> > [1] => walter
> > [2] => '
> > [3] => cruz
> > [4] =>
> > )
>
> >
* Walter Cruz wrote:
> irb(main):001:0>"walter ' cruz".split(/\b/)
> => ["walter", " ' ", "cruz"]
>
> and in php:
>
> Array
> (
> [0] =>
> [1] => walter
> [2] => '
> [3] => cruz
> [4] =>
> )
>
>
> But in python the behaviour of \b is differente from ruby or php.
My python
Hi all!
Just a simple question about the behaviour of a regex in python. (I
discussed this on IRC, and they suggest me to post here).
I tried to split the string "walter ' cruz" using \b .
In ruby, it returns:
irb(main):001:0>"walter ' cruz".split(/\b/)
=> ["walter", " ' ", "cruz"]
and in php