substring matching

M.N.A.Smadi smadim2 at grads.ece.mcmaster.ca
Wed Mar 2 16:43:29 EST 2005


hi;

say i have the following variable

data="""XYZ dflsjdfkl sdfsdhfl
      jdsflkdsjf
sldjfsldjf
"""

i need to make sure that the first part is actually XYZ, is there an 
easy way of doing that?

thanks
m.smadi



More information about the Python-list mailing list