string split

Jacek Popławski jp at ulgo.koti.com.pl
Sun Dec 24 08:08:51 EST 2000


Greg Jorgensen wrote:
>    rx = re.compile(r'\s*(<[^<>]*>)\s*')

this solution is better, that this with separator in string.split, becouse
it doesn't eat it (['one','br','three']), but - I must learn this regexp
stuff one day! 
thanks :)

-- 
Love is automatic pleasure
Virtual reality
Terminal hate - it's a calculation 
Send in the child for connection             "Computer God" - Ronnie James Dio



More information about the Python-list mailing list