how to return the regex that matches some text?,r = re.compile('(?P<int>^\\d+$)|(?P<word>^\\w+$)')