Peters Flexible RenAmiNg Kit (PFrank) Forum Index Peters Flexible RenAmiNg Kit (PFrank)
Support and Discussion Site for the PFrank File/Folder Renaming Tool (http://www3.telus.net/pfrank)
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Artist - Song.wmv to Artist\Artist - Song.wmv question.

 
Post new topic   Reply to topic    Peters Flexible RenAmiNg Kit (PFrank) Forum Index -> Plugins
View previous topic :: View next topic  
Author Message
bschuler



Joined: 16 Jun 2007
Posts: 3

PostPosted: Sat Jun 16, 2007 9:25 pm    Post subject: Artist - Song.wmv to Artist\Artist - Song.wmv question. Reply with quote

Hi Peter and community,
Got a quick question... I am trying to change some music videos I have from one folder... into a folder for each artist.

Currently I have:
Artist - Song.wmv

I'd like to have:
Artist\Artist - Song.wmv

Is this possible using your you RenAmiNG Kit? I am very technically gifted.. but your scripting language is way over my head. From what I've seen.. your software looks amazing.. just wish I understood it more.. but I am learning. Any idea on how to do the above? Thank you.
Back to top
View user's profile Send private message
bschuler



Joined: 16 Jun 2007
Posts: 3

PostPosted: Sat Jun 16, 2007 9:42 pm    Post subject: Reply with quote

Nevermind.. I got it. Just got lucky playing around.. here is the solution for others in need:

SEARCH PATTERN:
(?EBx)(.*?)[ ]*[-]+[ ]*(.*?)[ ]*[][ ]*(.*) # build path

REPLACE PATTERN:
\1/\2/\1 - \3

Not sure if that's exactly right.. but it seems to work so far.
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 09 Mar 2007
Posts: 446
Location: Canada

PostPosted: Sun Jun 17, 2007 2:26 am    Post subject: Reply with quote

Your regular expression will work but it defines what appears to be an extra third group that won't match anything for the case you outlined.
A cleaner solution, in case you would like to try it, is:

Search:
(?BEx)^(.*)[ ]*[-][ ]*(.*)

Replace:
\1/\1 - \2

Hope that is useful.

Peter.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
bschuler



Joined: 16 Jun 2007
Posts: 3

PostPosted: Sun Jun 17, 2007 2:45 pm    Post subject: Reply with quote

Thank you Peter for the correction. You've made the most powerful, and thus best, renaming program I've ever seen. I know because I've tried most of them. Thank you for saving me countless hours this weekend and I'm sure.. hours yet to come. Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Peters Flexible RenAmiNg Kit (PFrank) Forum Index -> Plugins All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


Start Your Own Video Sharing Site

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com