¡@

Home 

python Programming Glossary: texto

variable inside python regex

http://stackoverflow.com/questions/6930982/variable-inside-python-regex

a variable inside a regex how can I achieve this in python TEXTO sys.argv 1 if re.search r b w TEXTO b w subject re.IGNORECASE.. achieve this in python TEXTO sys.argv 1 if re.search r b w TEXTO b w subject re.IGNORECASE # Successful match else # Match attempt.. this question You have to build the regex as a string TEXTO sys.argv 1 my_regex r b w re.escape TEXTO r b w if re.search..