string split without consumption

Steve Holden steve at holdenweb.com
Sat Feb 2 11:33:12 EST 2008


robert wrote:
[...]
> but its also wrong regarding partial last lines.
> 
> re.split obviously doesn't understand \A \Z ^ $ and also \b etc. 
> empty matches.
> 
[...]
Or perhaps you don't understand re?

It's a tricky thing to start playing with. Look up re.MULTILINE ans 
re.DOTALL.

regards
  Steve
-- 
Steve Holden        +1 571 484 6266   +1 800 494 3119
Holden Web LLC              http://www.holdenweb.com/




More information about the Python-list mailing list