import re string = '6\' 3" ( 190 cm )'pattern = re.compile(r"\(\s*([0-9]+\s*[a-z]+)\s*\)")print(pattern.findall(string))
Standard input is empty
['190 cm']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!