DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
7+6 =
Submit