String pattern matching

Jim Lewis jimlewis at miclog.com
Sat Apr 1 05:50:48 EST 2006


Anyone have experience with string pattern matching?
I need a fast way to match variables to strings. Example:

string - variables
============
abcaaab - xyz
abca - xy
eeabcac - vxw

x matches abc
y matches a
z matches aab
w maches ac
v maches ee




More information about the Python-list mailing list