[issue20998] fullmatch isn't matching correctly under re.IGNORECASE

2014-04-06 Thread Gareth Gouldstone
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 rep

[issue21002] _sre.SRE_Scanner object should have a fullmatch() method

2014-03-21 Thread Gareth Gouldstone
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? -- versions

[issue21002] _sre.SRE_Scanner object should have a fullmatch() method

2014-03-20 Thread Gareth Gouldstone
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})') rex.scanner('bn20bs

[issue21002] _sre.SRE_Scanner object should have a fullmatch() method

2014-03-20 Thread Gareth Gouldstone
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 rep