Jan-22-2018, 04:37 PM
(Jan-10-2018, 09:29 AM)metalray Wrote: I started using named groups straight away.
(Jan-22-2018, 03:12 PM)metalray Wrote: I only get the error "pattern contains no capture groups"
the pattern
r'199\d{1}|20\d{2}|\d{2}(?![/,\-\w ])'
has no capture groupstry with
(?P<year>19\d{2}|20\d{2}|\d{2}(?![/,\-\w ]))