Contact: aviboots(AT)netvision.net.il
41,640 questions
54,303 answers
573 users
import re s = "3 64 983 6721" for match in re.finditer("\d+", s): print("index:", match.start(), " ", match.group(0)) ''' run: index: 0 3 index: 2 64 index: 5 983 index: 9 6721 '''