unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Re: Do POSIX classes work in regular expression searches?
@ 2011-07-23  3:19 Mark S
  2011-07-23  7:14 ` Andreas Röhler
  0 siblings, 1 reply; 4+ messages in thread
From: Mark S @ 2011-07-23  3:19 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org


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 <pedz...@gmail.com> 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/



^ permalink raw reply	[flat|nested] 4+ messages in thread
* Do POSIX classes work in regular expression searches?
@ 2011-07-23  1:12 Mark S
  2011-07-23  0:24 ` Perry Smith
  0 siblings, 1 reply; 4+ messages in thread
From: Mark S @ 2011-07-23  1:12 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org


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?

Thanks,
Mark

GNU Emacs 23.2.1 (i386-mingw-nt5.1.2600)
  of 2010-05-08 on G41R2F1



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-07-23  7:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-23  3:19 Do POSIX classes work in regular expression searches? Mark S
2011-07-23  7:14 ` Andreas Röhler
  -- strict thread matches above, loose matches on Subject: below --
2011-07-23  1:12 Mark S
2011-07-23  0:24 ` Perry Smith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).