Splitting a string

HMS Surprise john at datavoiceint.com
Tue May 15 14:28:12 EDT 2007


The string s below has single and double qoutes in it. For testing I
surrounded it with triple single quotes. I want to split off the
portion before the first \, but my split that works with shorter
strings does not seem to work with this one.

Ideas?

Thanks,
jvh

s = ''''D132258\',\'\',
\'status=no,location=no,width=630,height=550,left=200,top=100\')"
target="_blank" class="dvLink" title="Send an Email to selected
employee">'''

t = s.split('\\')




More information about the Python-list mailing list