[PLUG] Emacs Regex Question
Rich Shepard
rshepard at appl-ecosys.com
Fri Jan 28 17:32:40 UTC 2011
On Fri, 28 Jan 2011, Rogan Creswick wrote:
> You need to define a group around the digit, then reference that digit as
> the replace pattern, using query-replace-regexp. Match on:
>
> \([0-9]\)'
>
> and replace with:
>
> \1
>
> (to refer to the first group)
> http://www.gnu.org/software/findutils/manual/html_node/find_html/emacs-regular-expression-syntax.html
Rogan,
Obviously, I missed that part on the emacs regular expression syntax Web
page. Must have stopped reading too soon.
Many thanks,
Rich
More information about the PLUG
mailing list