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 

Move fields around and bulk ending

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



Joined: 12 Feb 2010
Posts: 5

PostPosted: Mon Sep 22, 2014 9:00 pm    Post subject: Move fields around and bulk ending Reply with quote

I would like to move some fields around and add dashes between a few but not others. also I would like to know if there is a way to grab all fields after a certain field.
Example
filename: Grimm - S01E02 season of the hexbeast.mkv
I have other episodes that are of various lengths
I have tried
(?x)(.*) - (?x)(.*) (?x)(.*) (?x)(.*) (?x)(.*) (?x)(.*) (?x)(.*) (?x)(.*)
replace
\1 - \2 - \3 \4 \5 \6 \7 \8

I get wierd results with dashes after the .mkv i.e. .mkv -
also is there a way to not have to have all 8 fields if I want to say leave everything after field 5 the same.
thank you
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 09 Mar 2007
Posts: 446
Location: Canada

PostPosted: Wed Oct 01, 2014 5:45 am    Post subject: Reply with quote

Here's an example with 3 fields (do not copy the single quotes when copy/paste to the customer renaming creator):

Row: 1
Search: '(?E)^(.*?) [-] (.*?) (.*)'
Replace: '\2 - \1 - \3'


Changes:
Grimm - S01E02 season of the hexbeast.mkv

To:
S01E02 - Grimm - season of the hexbeast.mkv

Use (.*) at the end to grab all fields after a certain field.


Hope that helps.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Peters Flexible RenAmiNg Kit (PFrank) Forum Index -> Regular Expressions 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