[PLUG] Emacs regex syntax error

Rich Shepard rshepard at appl-ecosys.com
Mon Jan 30 21:18:17 UTC 2017


   Probably have a grouping parenthesis out of place here.

   The file has dates in MM/DD/YYYY format and I want to convert this to
YYYY-MM-DD.

   The search string I wrote is
([0-9]\{1,2\})/([0-9]\{1,2\})/([0-9]\{4\})

and the replacement string is
$3-$1-$2

   Emacs tells me there are no replacements.

   The emacs wiki's list of regex symbols shows the occurrance number needs a
backslash escape before the braces.

TIA,

Rich



More information about the PLUG mailing list