help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Do POSIX classes work in regular expression searches?


From: Mark S
Subject: Re: Do POSIX classes work in regular expression searches?
Date: Fri, 22 Jul 2011 19:19:08 -0800
User-agent: Opera Mail/11.11 (Win32)


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!
Mark

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?
[[:ascii:]]*


m/mail/



reply via email to

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