[PLUG] emacs: regex replace modified search string
Galen Seitz
galens at seitzassoc.com
Fri Jun 26 16:03:27 UTC 2015
On 06/26/15 08:41, Rich Shepard wrote:
> On Fri, 26 Jun 2015, Galen Seitz wrote:
>
>> untested
>>
>> search: ^,\([:alpha:].*\)
>> replace: ,'\1
>
> galen,
>
> Worth a try the next time, but the string to be quoted is the third in
> each row (not at the beginning of the line) and the fourth string consists
> of digits. I'll take that for a test drive, though.
If you don't give us the complete problem, you're unlikely to get a
complete answer. Anyway, wrapping the strings you want to keep in
parens is key.
search: \(some stuff to keep\)foo\(more stuff to keep\)
replace: \1bar\2
galen
--
Galen Seitz
galens at seitzassoc.com
More information about the PLUG
mailing list