0

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))
Andrew Pampuch
  • 65
  • 1
  • 10

0 Answers0