2022-06-09-08-40
I need some help.
I’m looking for a technique to rename a bunch of files and folders.
2005_03_19_this_is_the_filename.md -> 2005/03/this_is_the_filename/index.md
2007_07_23_another_filename.md -> 2007/07/another_filename/index.md
2021_01_12_filename.md -> 2021/01/filename/index.md
Here’s the regex I want to use:
- Regex:
/(\d{4})_(\d{2})_(\d{2})_(.*).md/gm
- Substitusion:
$1/$2/$4/index.md