Re: [PLUG] Emacs: replace-regex to Remove Quotes [RESOLVED]

2012-10-15 Thread Rich Shepard
On Mon, 15 Oct 2012, Galen Seitz wrote: > 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 galen, Thank you. I knew

Re: [PLUG] Emacs: replace-regex to Remove Quotes [RESOLVED]

2012-10-15 Thread Galen Seitz
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 qu

Re: [PLUG] Emacs: replace-regex to Remove Quotes [RESOLVED]

2012-10-15 Thread Rich Shepard
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 hug

Re: [PLUG] Emacs: replace-regex to Remove Quotes

2012-10-15 Thread Rogan Creswick
Hi Rich, >Now I need to do ther reverse: remove quotes around digits to convert a > string to a number. I've tried the above adding quotes to the query string > and removing them from the replacement string, but that leaves the string > unchanged. I've also tried other variants with equal lack

[PLUG] Emacs: replace-regex to Remove Quotes

2012-10-15 Thread Rich Shepard
About a year ago Rogan taught me how to add quotes to a date string: M-x replace-regexp query = \([0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]\) replace = '\1' Now I need to do ther reverse: remove quotes around digits to convert a string to a number. I've tried the above adding quotes to the