Contact: aviboots(AT)netvision.net.il
39,870 questions
51,793 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 '''