Match beginning of two strings

Jim Richardson warlock at eskimo.com
Sun Aug 3 07:16:51 CEST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sat, 02 Aug 2003 23:14:10 -0400,
 Ravi <rxs141 at cwru.edu> wrote:
> 
>> 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
> 

Well, it wasn't me, but you're welcome anyway :)




-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/LJrDd90bcYOAWPYRAlD9AJ9mqKMhx5if6eZ+i9vMuVkAsmfLugCgs2RE
A6o4gDz8qa/YhpjSoHdTwJo=
=ZAWM
-----END PGP SIGNATURE-----

-- 
Jim Richardson         http://www.eskimo.com/~warlock

Linux, because eventually, you grow up enough to be trusted with a fork()




More information about the Python-list mailing list