I'm trying to match (.)\1+ in google. This works just fine on http://regexr.com/, but when I try this code in Python, r.match(s) returns None.
import re
s = 'google'
r = re.compile(r'(.)\1+')
print(r.match(s))
I'm trying to match (.)\1+ in google. This works just fine on http://regexr.com/, but when I try this code in Python, r.match(s) returns None.
import re
s = 'google'
r = re.compile(r'(.)\1+')
print(r.match(s))