[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Do POSIX classes work in regular expression searches?
From: |
Perry Smith |
Subject: |
Re: Do POSIX classes work in regular expression searches? |
Date: |
Fri, 22 Jul 2011 19:24:30 -0500 |
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:]]*