[racket-users] Re: regexp question

2015-10-31 Thread Tim Hanson
On Friday, October 30, 2015 at 10:35:19 PM UTC+1, Matthew Butterick wrote: > [[:space:]] and similar matchers also require #px. > > As for the difference between #rx and #px: > > "The pregexp ... procedures produce a regexp value using a slightly different > syntax of regular expressions that is

[racket-users] Re: regexp question

2015-10-30 Thread Matthew Butterick
[[:space:]] and similar matchers also require #px. As for the difference between #rx and #px: "The pregexp ... procedures produce a regexp value using a slightly different syntax of regular expressions that is more compatible with Perl." That must be the only thing in Racket influenced by Perl.

[racket-users] Re: regexp question

2015-10-30 Thread Tim Hanson
On Friday, October 30, 2015 at 7:21:58 PM UTC+1, Matthew Butterick wrote: > To use \s as a matcher, you need #px not #rx: > > (define rx-empty-or-all-blank-string > ;#rx"^[[:space:]]*$") > #px"^\\s*$") > > See > http://docs.racket-lang.org/reference/regexp.html?q=pregexp#%28elem._%28rxex._25

[racket-users] Re: regexp question

2015-10-30 Thread Matthew Butterick
To use \s as a matcher, you need #px not #rx: (define rx-empty-or-all-blank-string ;#rx"^[[:space:]]*$") #px"^\\s*$") See http://docs.racket-lang.org/reference/regexp.html?q=pregexp#%28elem._%28rxex._25%29%29 On Friday, October 30, 2015 at 11:15:08 AM UTC-7, Tim Hanson wrote: > hi, > > I