Re: substring matching

2005-03-02 Thread Roel Schroeven
M.N.A.Smadi wrote: > 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? data.startswith("XYZ") -- "Codito ergo sum" Roel Schroeven

Re: substring matching

2005-03-02 Thread Bill Mill
On Wed, 02 Mar 2005 16:43:29 -0500, M.N.A.Smadi <[EMAIL PROTECTED]> wrote: > 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? > d