Variable in Regex

J Hamilton tyrone_1066 at yahoo.com
Sat Mar 27 15:50:42 EST 2004


In Perl in can put a scalar variable in a regex as the pattern.

for example: m/$var/  where $var contains the string I want to match

Is there a way to do this in Python?



More information about the Python-list mailing list