help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: regular expression


From: Emanuel Berg
Subject: Re: regular expression
Date: Mon, 30 Jun 2014 23:11:39 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Teemu Likonen <tlikonen@iki.fi> writes:

>> (replace-regexp "[[:alpha:][:digit:]]" "x") One1
>> (will be xxxx)
>
> I think [[:alpha:][:digit:]] is the same thing as
> [[:alnum:]].

OK, I made up the example so the OP would understand
the brackets, that is, the first (outer) pair makes it
a class, and the second (inner) pair puts some chars
into that class. So you'd not think [[:alnum:]] is
"atomic" syntax... I don't know how to better explain
it - the example is more clear, but of course examples
should make sense as well...

-- 
underground experts united:
http://user.it.uu.se/~embe8573


reply via email to

[Prev in Thread] Current Thread [Next in Thread]