re.search(r'(.).* 1' python code example
Example 1: re python3
import re
>>> m = re.search('(?<=abc)def', 'abcdef')
>>> m.group(0)
'def'
Example 2: def check_zip_code(text): result = re.search(r'\d{5}(?:-\d{4})?', text) return result != None
(?!\A)\b\d{5}(?:-\d{4})?\b