Answers for "I want only the span of finditer in re python"

0

I want only the span of finditer in re python

import re
p = re.compile("[a-z]")
for m in p.finditer('a1b2c3d4'):
    print(m.start(), m.group())
Posted by: Guest on April-11-2021

Code answers related to "I want only the span of finditer in re python"

Python Answers by Framework

Browse Popular Code Answers by Language