[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
2 Feb 2007 15:20:44 -0800
I needed to replace lines matching the following pattern
"hello 123456 123456"
M-x replace-regexp RET hello ...... RET \& /
* NOTE: a white space follows the \& */
To do this.
I was wondering how I would do this with the \d construct. That is how
would I do this along the lines of
M-x replace-regexp RET hello \(......\)\1 RET hello \1 /*
NOTE: a white space follows the \1 */