Find the command to modify the file name by batch regular expressions. Windows/linux all OK

  html5, question

图片描述

As shown in the figure, I want to change 999 in the middle to 001 and html in the back to png. how should I write the command? Thank you!

Two steps
1.rename -v 's/999/001/' ./*.html
2.rename -v 's/.html/.png/' ./*.html
You can add options to the parameters first-n, only the results of renaming are displayed, but no actual operation is carried out.