fork download
  1. import re
  2.  
  3. string = '6\' 3" ( 190 cm )'
  4. pattern = re.compile(r"\(\s*([0-9]+\s*[a-z]+)\s*\)")
  5. print(pattern.findall(string))
Success #stdin #stdout 0.02s 27712KB
stdin
Standard input is empty
stdout
['190 cm']