From: Manfred Lotz (manfred.lotz at arcor.de) Date: Tue Apr 15 15:56:27 EDT 2014 |
|
On Tue, 15 Apr 2014 21:39:24 +0200 Jens Axel Søgaard <jensaxel at 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
Posted on the users mailing list. |
|