i want only the span of finditer in re python

Solutions on MaxInterview for i want only the span of finditer in re python by the best coders in the world

showing results for - "i want only the span of finditer in re python"
Clelia
20 Feb 2018
1import re
2p = re.compile("[a-z]")
3for m in p.finditer('a1b2c3d4'):
4    print(m.start(), m.group())
5
similar questions