prabjyotsudan
12/25/2017 - 4:58 PM

regex intro

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