From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Do POSIX classes work in regular expression searches?
Date: Sat, 23 Jul 2011 09:14:45 +0200 [thread overview]
Message-ID: <4E2A74E5.9070602@easy-emacs.de> (raw)
In-Reply-To: <op.vy1x56p1zpgdil@hermione2008.sd.cox.net>
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!
> 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:]]*
>
you may understand the inner bracketed-form like an equivalent to "a-zA-Z"
you may write for example
[[:ascii:]ÄÖÜaöü]*
in order to cover german umlauts too
next prev parent reply other threads:[~2011-07-23 7:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-23 3:19 Do POSIX classes work in regular expression searches? Mark S
2011-07-23 7:14 ` Andreas Röhler [this message]
-- 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=4E2A74E5.9070602@easy-emacs.de \
--to=andreas.roehler@easy-emacs.de \
--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).