From: "Mark S" <throaway@yahoo.com>
To: "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:19:08 -0800 [thread overview]
Message-ID: <op.vy1x56p1zpgdil@hermione2008.sd.cox.net> (raw)
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/
next reply other threads:[~2011-07-23 3:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-23 3:19 Mark S [this message]
2011-07-23 7:14 ` Do POSIX classes work in regular expression searches? 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
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=op.vy1x56p1zpgdil@hermione2008.sd.cox.net \
--to=throaway@yahoo.com \
--cc=help-gnu-emacs@gnu.org \
/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).