I want to extract 5 continuous digits from the string
code I have written.
re.findall(r"((D|^)*)ddddd((D|$)*)", s)
but it can not pass the string
"Helpdesk-Agenten (m/w) Kennziffer: 12966"
The expected result is:
12966
Example 2:
#input
"Helpdesk-Agenten (m/w) Kennziffer: 12966abc"
# expected
12966
Example 3:
#input
"Helpdesk-Agenten (m/w) Kennziffer: 12966345"
# expected
"" (because the length of continuous digits is longer than 5)
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…