CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Need a Custom or Prewritten Perl Program?: I need a program that...: Re: [hranick] Can swap the x and y values in an "x-y.mpg" format: Edit Log



Zhris
Enthusiast

Jun 19, 2010, 12:59 PM


Views: 2956
Re: [hranick] Can swap the x and y values in an "x-y.mpg" format

Took me a while to figure out what you actually required. You are using a program "Bulk Rename Utility" and in order for you to rename your files you are asked to provide 2 regular expressions (1 for match and 1 for replace). Therefore your question would have been better suited in the regular expressions section of this forum.

I think you could use the regular expression from Bianca's print loop e.g.

Match:
^([^-]+)-([^\.]+)\.(.+)$

Replace:
$2-$1.$3

Chris


(This post was edited by Zhris on Jun 19, 2010, 1:06 PM)


Edit Log:
Post edited by Zhris (Enthusiast) on Jun 19, 2010, 1:06 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives