On Tue, 15 Apr 2014 21:39:24 +0200
Jens Axel Søgaard <jensa...@soegaard.net>
wrote:

> If you need a literal ] you can use (regexp-quote "]")
> 
> > (count-substring (regexp-quote "]") "a[rts[a3]]]]")
> 4
> 

Didn't know this. It is not so bad. But I might want to match more than
one character.

For example the following won't work:

(count-substring 
        (string-append "[" (regexp-quote "!#[]") "]")
        "a#s!rt[")

-- 
Manfred



____________________
  Racket Users list:
  http://lists.racket-lang.org/users

Reply via email to