Gareth Gouldstone added the comment:
fullmatch() is not yet implemented on the regex scanner object SRE_Scanner
(issue 21002). Is it possible to adapt this patch to fix this omission?
--
nosy: +Gareth.Gouldstone
___
Python tracker
<h
Gareth Gouldstone added the comment:
Scanner may not be a public interface but it is widely documented, not least on
page 67 of the O'reilly Python Cookbook.
Even if Scanner is not made public, then surely it should maintain consistency
with the public interfaces?
--
ver
Gareth Gouldstone added the comment:
I also encountered issue 20998, which explains the convoluted [^\W\d_] in place
of [a-zA-Z] as I was investigating why case-insensitivity and quantifiers would
not work together.
--
___
Python tracker
<h
New submission from Gareth Gouldstone:
I believe that the SRE_Scanner object should have a .fullmatch() method for
consistency with other re pattern-matching behaviour.
>>> rex = re.compile('([^\\W\\d_]{1,2}[0-9]{1,2}[^\\d\\W_]?)[
>>> \\t]*([0-9][^\\d\\W_]{2})