basic regex syntax in python
myRegex = re.compile('\d-\d-\d') mo = myRegex.search('YO this is some text 1-1-3') if mo is not None: print(mo.group()) #Output: 1-1-3