Re: s.split() on multiple separators
- From: mrkafk@xxxxxxxxx
- Date: Sun, 30 Sep 2007 12:08:28 -0700
On 30 Wrz, 20:27, William James <w_a_x_...@xxxxxxxxx> wrote:
On Sep 30, 8:53 am, mrk...@xxxxxxxxx wrote:
E:\Ruby>irb
irb(main):001:0> ' abcde abc cba fdsa bcd '.split(/[ce ]/)
=> ["", "ab", "d", "", "ab", "", "", "ba", "fdsa", "b", "d"]
That's acceptable only if you write perfect ruby-to-python
translator. ;-P
Regards,
Marcin
.
- References:
- s.split() on multiple separators
- From: mrkafk
- Re: s.split() on multiple separators
- From: William James
- s.split() on multiple separators
- Prev by Date: Re: s.split() on multiple separators
- Next by Date: Re: s.split() on multiple separators
- Previous by thread: Re: s.split() on multiple separators
- Next by thread: notify when process finishes (on unix)
- Index(es):