Ekstrak Teks Regex Python

>>> import re

>>> re.findall(r'\d{1,5}','gfgfdAAA1234ZZZuijjk')

>>> ['1234']
Embarrassed Emu