Jan-22-2018, 03:12 PM
Hi buran,
you recommended .search, which works for type _sre.SRE_Pattern.
If I use yearsearchdf = df['text'].str.extract(r'199\d{1}|20\d{2}|\d{2}(?![/,\-\w ])')
I only get the error "pattern contains no capture groups"
you recommended .search, which works for type _sre.SRE_Pattern.
If I use yearsearchdf = df['text'].str.extract(r'199\d{1}|20\d{2}|\d{2}(?![/,\-\w ])')
I only get the error "pattern contains no capture groups"