Попробуй так:
import re
string = "10x3"
regexp = r"(\d+)x(\d+)"
regexmatch = re.match(regexp, string)
if regexmatch is not None:
print("TRUE")
print(re.search(regexp, string).groups())
lower = regexmatch.group(1)
upper = regexmatch.group(2)
print("LOWER : " + str(lower))
print("UPPER : " + str(upper))
else:
print("FALSE")
Вам создал WebFileManager наш очень собственный Jeff Atwood