JAVASCRIPT 39
Advanced Renamer - Rename File base on regex match By timo on 25th August 2021 10:06:00 AM
  1. // format contains: "-"{num}"x"{num} || "-pdf" if extension (item.ext) matches ".jpg"
  2. if ( '.jpg' === item.ext ) {
  3.         if ( item.name.match(/-\d+x\d+/) || item.name.match(/\-pdf/) ) {
  4.           return '_del_'+index+'.jpg';
  5.         }
  6. }

Paste is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.