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

From: Eli Barzilay (eli at barzilay.org)
Date: Fri Jun 3 23:00:54 EDT 2011

25 minutes ago, Jay McCarthy wrote:
> 2011/6/3 Rodolfo Carvalho <rhcarvalho at gmail.com>:
> > 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 grammar...
> 
> #px is more powerful than #rx, but that power costs. Most regexps
> can get by with what #rx has.

(To be clear, there is no runtime cost.)

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!


Posted on the users mailing list.