clarkgrubb / hyperpolyglot

hyperpolyglot.org
Other
479 stars 96 forks source link

code in Python regular expressions: wrong more quote ' #30

Closed slideclick closed 9 years ago

slideclick commented 9 years ago

named group capture: There is a wrong ' more: ''foo.txt'

rx = '^(?P.+).(?P.+)$' m = re.search(rx, ''foo.txt')

m.groupdict()['file'] m.groupdict()['suffix']

image

clarkgrubb commented 9 years ago

Thanks, it is fixed.