Python regex find all overlapping matches?
I’m trying to find every 10 digit series of numbers within a larger series of numbers using re in Python 2.6.
I’m trying to find every 10 digit series of numbers within a larger series of numbers using re in Python 2.6.
(?=...) matches if ... matches next, but doesn’t consume any of the
string. This is called a lookahead assertion. For example,
Isaac (?=Asimov) will match 'Isaac ' only if it’s followed by 'Asimov'.