exrex
exrex copied to clipboard
regex '\w' is ''
In [8]: import exrex
In [9]: exrex.getone('\w+')
Out[9]: ''
I'm facing the same issue.
Same here. There are other variations that also don't work:
"\D", "\W" and "\S".
However, I do agree that having "\w" working is much more important.
\w
is working if you install exrex
from master
(\W
, \D
and \S
are still not working)
Thanks for the heads-up, @CrafterKolyan! For reference, the PR that implemented this was https://github.com/asciimoo/exrex/pull/42. It was merged on 7 October 2019, and there hasn't been a release since then.
Confirming that this feature (and most probably many other new features) are still not present on the (PyPI) release