Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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())
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #I #span #finditer #python
ADD COMMENT
Topic
Name
7+6 =