Last Updated: February 25, 2016
·
590
· matthewbdaly

Convert dd/mm/yyyy to yyyy-mm-dd in Vim

:%s/(\d{2})\/(\d{2})\/(\d{4})/\3-\2-\1/g

1 Response
Add your response

Unfortunately the formatting seems to have not picked up some of the escape characters, so you need to escape pretty much every character

over 1 year ago ·