fork download
  1. import re
  2.  
  3. str = "text = [('Тестовый текст,)]"
  4. x = re.findall("'([\w ]+)", str, re.UNICODE)
  5.  
  6. print(x[0])
Success #stdin #stdout 0.02s 27712KB
stdin
Standard input is empty
stdout
Тестовый текст