On Fri, 2007-05-11 at 13:06 -0700, Guido van Rossum wrote:
> >     attribution_pattern = re.compile(ur'(---?(?!-)|\u2014) *(?=[^ \n])')
> 
> But wouldn't it be just as handy to teach the re module about \u and
> \U, just as it already knows about \x (and \123 octals)?

And \n, \r, etc.  Implementing \u in re is not only useful, but also
consistent.



_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to