RegExp Rename: Cut numbers from beginning of filename
Posted: 23 Dec 2008 09:38
Cut one or more numbers followed by a minus ("-") char from the beginning of the filename:
Examples:
Trivial for RegExp experts but I'm proud I figured it out... 
PS: And here's a tip for newbies. You can run this rename job directly through the Address Bar, using the following "Quick Script":
Code: Select all
version 1: (^\d{1,}-)(.*) > $2
version 2: (^\d+-)(.*) > $2Code: Select all
1-20081015-01.lnk > 20081015-01.lnk
12-20081015-02.lnk > 20081015-02.lnk
321-03.txt > 03.txt
1.lnk > <Unchanged> 1.lnkPS: And here's a tip for newbies. You can run this rename job directly through the Address Bar, using the following "Quick Script":
Code: Select all
::rename "r", "(^\d+-)(.*) > $2", "p"