Match beginning of two strings

Ravi rxs141 at cwru.edu
Sun Aug 3 05:14:10 CEST 2003


> Are you trying to match any to any strings? or only a pair as above?
> 

Just a pair at a time, and I only want the first N characters that are 
common to both strings. The os.path.commonprefix works nicely. Thanks 
for your help.

Ravi





More information about the Python-list mailing list