unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Perry Smith <pedzsan@gmail.com>
To: throaway@yahoo.com
Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: Do POSIX classes work in regular expression searches?
Date: Fri, 22 Jul 2011 19:24:30 -0500	[thread overview]
Message-ID: <9B0A08E4-8570-4BFA-A273-12CEEE7FBDE4@gmail.com> (raw)
In-Reply-To: <op.vy1sacw6zpgdil@hermione2008.sd.cox.net>


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:]]*





  reply	other threads:[~2011-07-23  0:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-23  1:12 Do POSIX classes work in regular expression searches? Mark S
2011-07-23  0:24 ` Perry Smith [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-07-23  3:19 Mark S
2011-07-23  7:14 ` Andreas Röhler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9B0A08E4-8570-4BFA-A273-12CEEE7FBDE4@gmail.com \
    --to=pedzsan@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=throaway@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).