On 27.03.17 18:17, Simon D. wrote:
After some french discussions about this idea, I subscribed here to
suggest adding a new string litteral, for regexp, inspired by other
types like : u"", r"", b"", br"", f""…

The regexp string litteral could be represented by : re""

It would ease the use of regexps in Python, allowing to have some regexp
litterals, like in Perl or JavaScript.

There are several regular expression libraries for Python. One of them is included in the stdlib, but this is not the first regular expression library in the stdlib and may be not the last. Particular project can choose using an alternative regular expression library (because it has additional features or is faster for particular cases).


_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to