Skip to main content

Find and Replace Date with Regex

Regex to find date in format mm/dd/yyyy

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

Option 2: [0-9]{4}-[0-9]{2}-[0-9]{2}T

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