import re
def findDimensions(text):
return tuple([ float(n) for n in re.sub('[^0-9,.]', ' ', text ).replace(',', '.').split()])
print(findDimensions("14,5 x 55 x 22,0"))
print(findDimensions("14,5 x 55cm x 22"))
print(findDimensions("14,5cm x 55 x 22cm"))
print(findDimensions("14,5cmx55x22cm"))
print(findDimensions("14,5 cmx55 cmx22 cm"))
print(findDimensions("14,5 cm x 55.0 x 22.0 cm"))
aW1wb3J0IHJlCgpkZWYgZmluZERpbWVuc2lvbnModGV4dCk6CglyZXR1cm4gdHVwbGUoWyBmbG9hdChuKSBmb3IgbiBpbiByZS5zdWIoJ1teMC05LC5dJywgJyAnLCB0ZXh0ICkucmVwbGFjZSgnLCcsICcuJykuc3BsaXQoKV0pCgpwcmludChmaW5kRGltZW5zaW9ucygiMTQsNSB4IDU1IHggMjIsMCIpKQpwcmludChmaW5kRGltZW5zaW9ucygiMTQsNSB4IDU1Y20geCAyMiIpKQpwcmludChmaW5kRGltZW5zaW9ucygiMTQsNWNtIHggNTUgeCAyMmNtIikpCnByaW50KGZpbmREaW1lbnNpb25zKCIxNCw1Y214NTV4MjJjbSIpKQpwcmludChmaW5kRGltZW5zaW9ucygiMTQsNSBjbXg1NSBjbXgyMiBjbSIpKQpwcmludChmaW5kRGltZW5zaW9ucygiMTQsNSBjbSB4IDU1LjAgeCAyMi4wIGNtIikpCgoK
(14.5, 55.0, 22.0)
(14.5, 55.0, 22.0)
(14.5, 55.0, 22.0)
(14.5, 55.0, 22.0)
(14.5, 55.0, 22.0)
(14.5, 55.0, 22.0)