Peters Flexible RenAmiNg Kit (PFrank) Forum Index Peters Flexible RenAmiNg Kit (PFrank)
Support and Discussion Site for the PFrank File/Folder Renaming Tool (***NEW HOME PAGE*** "http://pfrank.atwebpages.com")
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help With Capitalization Please

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



Joined: 15 Apr 2008
Posts: 11

PostPosted: Sun Mar 07, 2010 7:10 pm    Post subject: Help With Capitalization Please Reply with quote

Hello again,
Been a while since I've needed help but I'm stuck again.

I'm looking for a regex to capitalize single letters that are followed by a period. '.'

ie.
Company R.G.F.

becomes
Company R.g.f.

when using the sentence case option and I am trying to correct it.

It wouldn't be a problem with just a few files, but it has come up quite often.

Thanks,
Eidolen
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 09 Mar 2007
Posts: 448
Location: Canada

PostPosted: Mon Mar 08, 2010 6:09 am    Post subject: Reply with quote

Hi,

Unfortunately there is no elegant way to do this.
The brute force way is to add a translation row for each letter.

e.g.

Row: 1
Search: '(?E)a\.'
Replace: 'A.'
Row: 2
Search: '(?E)b\.'
Replace: 'B.'
Row: 3
Search: '(?E)c\.'
Replace: 'C.'


You can continue this pattern for all 27 letters of the alphabet.

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



Joined: 15 Apr 2008
Posts: 11

PostPosted: Mon Mar 08, 2010 2:24 pm    Post subject: Reply with quote

That's fine, just wanted to make sure I wasn't missing anything obvious.

Thanks for the quick reply and helpful answer.

E
Back to top
View user's profile Send private message
eidolen



Joined: 15 Apr 2008
Posts: 11

PostPosted: Tue Mar 09, 2010 6:12 pm    Post subject: Reply with quote

I almost forgot,
I am also having trouble with the Post Processing feature. It seems that no matter what I try, I can NOT get rid of the separator on a single pass, but I can user the exact same regex after the first rename and it works fine.

Is there a bug I'm unaware of, or am I just doing something wrong?

Thanks
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 09 Mar 2007
Posts: 448
Location: Canada

PostPosted: Wed Mar 10, 2010 7:46 am    Post subject: Reply with quote

Sorry but I need more details on exactly what the problem is.
Please post some example before/required-new names, before/resulting-new names, and the summary information displayed by PFrank after the scan.

Thanks,

Peter.
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