[PLUG] emacs: regex replace modified search string

Rich Shepard rshepard at appl-ecosys.com
Fri Jun 26 18:48:50 UTC 2015


On Fri, 26 Jun 2015, Galen Seitz wrote:

> To quote whatever is in the N+1 CSV column:
>
> search:  ^\(\([^,]*,\)\{N\}\)\([^,]*\)\(,.*\)
> replace: \1'\3'\4

galen,

   I'll need to study this carefully to really understand it.

> This won't work if you are trying to quote the first or last column, as
> it expects ',' surrounding the thing you are quoting.

   That's OK because it is the second and third columns that I want quoted.

Thanks very much,

Rich





More information about the PLUG mailing list