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

From: Rodolfo Carvalho (rhcarvalho at gmail.com)
Date: Fri Jun 3 22:31:29 EDT 2011


I'm curious about 2 design decisions made:

1) Why do I have to escape things like "\d{2}" -> "\\d{2}"?

2) Why there are two kinds of regexps, #rx and #px?
#rx"\\d{2}" doesn't work because the curly braces are part of just pregexps


Rodolfo Carvalho
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20110603/b5f6b587/attachment.html>

Posted on the users mailing list.