[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: why does not work my regex-bilder right?
From: |
harven |
Subject: |
Re: why does not work my regex-bilder right? |
Date: |
Wed, 08 Dec 2010 15:36:05 -0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
David Kastrup <dak@gnu.org> writes:
> beonit <beonit@gmail.com> writes:
>
>> i want search previous digit, repeated 3 times in my regex-builder
>> mode
>>
>> "[[:digit:]]\{3\}"
>> or
>> "[[:digit:]]{3}"
>>
>> but not work. why?
>
> IIRC, repeat counts don't "specialize" the previous expression. It
> probably works to use parens for that, like
>
> \([[:digit:]]\)\{3\}
In regexp-builder you need double backquotes.
"\\([[:digit:]]\\)\\{3\\}"