Regular Expressions?

soheil2.rm soheilb at sympatico.ca
Tue Feb 24 21:15:55 EST 2004


I want to use a regular expression like the following: 

"*[\s|\w]*" + x +"[\s|\w]*\" + y + "*[\s|\w]*\" + y + "*[\s|\w]*"

where x and y and varaiblae names and their value changes everytime. 
For some reason this gives me an Invalid Token error. Can I use 
variables in a regular Expression?

thanks a lot





More information about the Python-list mailing list