[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Do POSIX classes work in regular expression searches?

From: Andreas Röhler
Subject: Re: Do POSIX classes work in regular expression searches?
Date: Sat, 23 Jul 2011 09:14:45 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; de; rv: Gecko/20110616 SUSE/3.1.11 Thunderbird/3.1.11

Am 23.07.2011 05:19, schrieb Mark S:

Thanks Perry!

I suppose this was obvious to everyone, but I really didn't see it in
the documentation -- or even an example of usage.

Thanks again!

On Jul 22, 4:24 pm, Perry Smith <address@hidden> wrote:
On Jul 22, 2011, at 8:12 PM, Mark S wrote:
I've been trying to do some simple searches like:
(query-replace-regexp "<span[:ascii:]*?</span>+" "test")
or even the simpler
(query-replace-regexp "[:ascii:]*" "test")
and not getting anywhere. Emacs just looks for the characters ":acis"
-- not for the POSIX character set of all ASCII characters. Trying it
with other sets also got me nowhere. These character classes are
listed in the Emacs documentation -- is there a trick to getting them
to work?
Looks like you need two sets of brackets?

you may understand the inner bracketed-form like an equivalent to "a-zA-Z"

you may write for example


in order to cover german umlauts too

reply via email to

[Prev in Thread] Current Thread [Next in Thread]