I\'d like to use a variable inside a regex, how can I do this in Python?
variable
regex
Python
TEXTO = sys.argv[1] if re.search(r\"\\b(?=\\
if re.search(r"\b(?<=\w)%s\b(?!\w)" % TEXTO, subject, re.IGNORECASE):
This will insert what is in TEXTO into the regex as a string.