[Python-ideas] Add regex pattern literal p""

Steven D'Aprano steve at pearwood.info
Thu Dec 27 17:00:43 EST 2018

On Thu, Dec 27, 2018 at 05:47:46PM +0000, MRAB wrote:
> On 2018-12-27 11:48, Ma Lin wrote:
> [snip]
> >2, We can't use regex module as a drop-in replacement: import regex as re
> >IMHO, I would like to see regex module be adopted into stdlib after
> >cutting off its "full case-folding" and "fuzzy matching" features.
> >
> I think that omitting full casefolding would be a bad idea; after all, 
> strings (in Python 3) have a .casefold method.

And I don't understand why omitting fuzzy matching is a good idea. If 
you don't want fuzzy matching, don't use it in your code. But why remove 


More information about the Python-ideas mailing list