case1 = http:www.freejobalert.comupsc-advt-no-18337
case2 = http:www.freejobalert.comupsc-advt-no-1833742
job_id = (''.join(re.findall(r'\d{7}:\d{5}',case1,re.I)))
how can i find only 33742 from this above string using regular expression . the number maybe 5 or 7 character.
\d{7}|\d{5}...