[PLUG] Emacs Regex Question

Rich Shepard rshepard at appl-ecosys.com
Fri Jan 28 16:56:41 UTC 2011


   I want to globally replace a digit followed by a single quotation mark by
the digit alone. Using emacs's regex I set the search term as [0-9]' and the
replace term as \&. The replace term replaces the single quote, too. I
cannot do a regular search-and-replace for single quotes because there are
strings defined.

   How do I write the replacement term so only the digit is written and the
single quote eliminated?

Rich



More information about the PLUG mailing list