I am using the following code:
CARRIS_REGEX=r\'(\\d+) ([\\s\\w\\.\\-]+) (\\d+:\\d+) (\\d+m)
-
re.findall(pattern.string)
findall() returns all non-overlapping matches of pattern in string
as a list of strings.
re.finditer()
finditer() returns callable object.
In both functions, the string is scanned from left to right and
matches are returned in order found.
- 热议问题