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

From: Carl Eastlund (cce at ccs.neu.edu)
Date: Fri Jun 3 22:49:09 EDT 2011

On Fri, Jun 3, 2011 at 10:46 PM, Rodolfo Carvalho <rhcarvalho at gmail.com> wrote:
>> > 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.

The origin of #px is "Perl-compatible regular expression", while #rx
are compatible with command-line tools such as egrep.


Posted on the users mailing list.