exrex icon indicating copy to clipboard operation
exrex copied to clipboard

regex '\w' is ''

Open Macr0phag3 opened this issue 5 years ago • 5 comments

In [8]: import exrex

In [9]: exrex.getone('\w+')
Out[9]: ''

Macr0phag3 avatar Jun 03 '19 07:06 Macr0phag3

I'm facing the same issue.

waldyrious avatar Oct 16 '19 14:10 waldyrious

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.

gaborod16 avatar Nov 04 '19 10:11 gaborod16

\w is working if you install exrex from master (\W, \D and \S are still not working)

CrafterKolyan avatar Nov 24 '20 08:11 CrafterKolyan

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.

waldyrious avatar Nov 24 '20 09:11 waldyrious

Confirming that this feature (and most probably many other new features) are still not present on the (PyPI) release

olfMombach avatar Jan 11 '21 16:01 olfMombach