[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Emacs regexp problem
From: |
address@hidden |
Subject: |
Emacs regexp problem |
Date: |
Tue, 29 Jan 2008 10:00:52 -0800 (PST) |
User-agent: |
G2/1.0 |
X-No-Archive:yes
Hello, I'm doing an emacs replace-regexp and the regexp behaves
differently from how it behaves in Python, and also differently from
how I expect.
I'm trying to add quotes around the parameter in a function call.
I.e.:
func(param) should be converted to func('param')
I use the following command:
M-x replace-regexp [enter] get\((.*)\) [enter] get('\1')) [enter]
and the result is func(param) is converted to func('(param)')
Why are those extra parentheses appearing in there; is this an error
on emacs' part?
Thanks
- Emacs regexp problem,
address@hidden <=