Bulkmanage strip first two characters with sprintf or?

marino

Joined: 2003-01-02
Posts: 9
Posted: Sat, 2008-10-11 17:31

OK I have bulkmanage installed but I suck at regular expressions.
How do I strip the first two characters of file names or Titles?
All my filenames are like 01zoo.jpg 02airport.jpg etc
I want my titles to look like zoo, airport etc

If there is another way please let me know
I would also consider a script that strips numerals off the Title column in the database.

I don't want to use a desktop utility to strip names before uploading.
I want it done on the server.

Marino

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2008-10-12 02:04

most php functions should work so... this should work:
{$theme.item.title|substr:2}
http://ca.php.net/substr

there is also a 3rd party module to prepend and append titles but I have never tried it:
http://codex.gallery2.org/Gallery2:Modules:bulkup

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team