>> > While you can be forgiven for not have guessed, os.path is the place to > look: > import os.path > a = "abcdefghijklmnopqrstuvwxyz" > b = "abcdefghijklmnopBHLHT" > print os.path.commonprefix([a,b]) > > -Scott David Daniels > Scott.Daniels at Acm.Org > Certainly not where I was expecting it, Thanks Ravi