fork download
  1. import re
  2.  
  3. text = "some text here en Value1 (VALUE2)"
  4. result = re.search(r"^(.*?)\s+en\s+(.*?)\s+\(([^()]*)\)", text)
  5.  
  6. print(result.groups())
Success #stdin #stdout 0.03s 9512KB
stdin
Standard input is empty
stdout
('some text here', 'Value1', 'VALUE2')