[racket] Some design "whys" of regexps in Racket

From: Rodolfo Carvalho (rhcarvalho at gmail.com)
Date: Fri Jun 3 23:54:32 EDT 2011

On Sat, Jun 4, 2011 at 00:50, Eli Barzilay <eli at barzilay.org> wrote:

> [...]
>
> > So I've been "lying" all the time. I was not used to write "\d{2}", but
> > actually the raw-string r"\d{2}".
>
> Here's how they're not really raw:
>
>  >>> r"foo\"
>  [...]
>  SyntaxError: EOL while scanning string literal
>
>
Yep! Inconsistent and error-prone!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20110604/b4d89233/attachment.html>

Posted on the users mailing list.