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
[[: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.
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
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
4 matches
Mail list logo