search

re.search(pattern, s) returns a match object or None.

import re
m = re.search(r'\d+', 'abc123')
if m: print(m.group())  # 123