Convert dd/mm/yyyy to yyyy-mm-dd in Vim
:%s/(\d{2})\/(\d{2})\/(\d{4})/\3-\2-\1/g
Written by Matthew Daly
Related protips
1 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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vim
Authors
Related Tags
#vim
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#