Skip to main content

Find and Replace Date with Regex

Regex to find date in format mm/dd/yyyy

([\d]{1,2})/([\d]{1,2})/([\d]{4})

In Sublime Text Find and Replace (CMD+OPT+F) replace with $3-$1-$2

Sublime Regex Date

This replaces date mm/dd/yyyy with yyyy-mm-dd