Match beginning of two strings

Ravi rxs141 at cwru.edu
Sat Aug 2 23:14:10 EDT 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