[PLUG] Emacs regex: quote dates

Rich Shepard rshepard at appl-ecosys.com
Wed Nov 23 00:56:07 UTC 2011


   I've looked at the emacs wiki regex page and tried a couple of different
ways to put single quotes around dates in a large data file, but I've no
succeeded. I'd appreciate some help here.

   The dates are in SQL INSERT INTO statements delineated with commas and of
the ISO standard YYYY-MM-DD. I've tried the regex search-and-replace using
[:digit:] and [0-9] for each digit in the dates but that's not doing the
job; I get the search string inserted rather than the original date
surrounded by single quotes.

   I'm far from a regex expert despite having read the ORA regex book a while
ago and the emacs wiki just now. I don't use them enough to have become
fluent.

Pointers appreciated,

Rich



More information about the PLUG mailing list