On 10/15/2012 10:39 AM, Rich Shepard wrote:
> On Mon, 15 Oct 2012, Rogan Creswick wrote:
>
>> Doing the opposite seems to be working for me. Specifically (I used a
>> simpler example):
>>
>> M-x replace-regexp
>> query = '\([0-9][0-9][0-9]\)'
>> replace = \1
>
> Rogan,
>
> A-ha! I had the quotes inside the parentheses, not outside. That does make
> a huge difference.
>
> Many thanks,
>
> Rich
BTW, emacs regex supports repeat counts.
\{3\} previous character or group, repeated 3 times
\{3,\} previous character or group, repeated 3 or more times
\{3,6\} previous character or group, repeated 3 to 6 times
http://www.gnu.org/software/emacs/manual/html_node/elisp/Regexp-Backslash.html#Regexp-Backslash
galen
--
Galen Seitz
[email protected]
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug