regex - Formatting regular expression output (for Keyboard maestro). -
i have keyboard macro tool (keyboard maestro) returns current date in %numberdate% variable; contains string "3/31/15" march 31, 2015.
the tool supports regular expression, using regular expression, need transform value formatted string of [yyyy/mm/dd] format; in example [2015/03/31].
the expression used extract information (\d+)/(\d+)/(\d+), however, [20$3/$1/$2] makes [2015/3/31] not [2015/03/31]. there way check if $1 or $2 1 digit insert 0 automatically?


i use icudatetimefor , replace date format.
%icudatetimefor%now()+20%[yyyy/mm/dd]%
Comments
Post a Comment