Avatar ·

Using the variable in the regular expression python

📁 python, ии

Salute! Please help to solve it would seem trivial, but for lack of experience in programming, an absolutely unusual task for me :)

  mt = re.findall ( r '\'" "variable" "\ s \ '' )     

instead of" variable "" should be a variable, which will be consumed by different lines, and I do not know how to present it correctly.