The preset matches YYYY-MM-DD with year, month and day groups and replaces each match using $<name> syntax.

Named and positional captures coexist

RegexLab displays the capture array and named group record so their correspondence is visible.

Replacement uses native tokens

$<day>/$<month>/$<year> is interpreted by String.replace, not by custom template code.