It uses Perl regular expression syntax. This will work for your 1st example (to get rid of arbitrary leading crap):
ren-regexp 's/^.*(Episode.*\.avi)/$1/' *Episode*.avi
In reply to Re: one liner to rename multiple files in a directory?
by toolic
in thread one liner to rename multiple files in a directory?
by VGR
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |