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 

Insert space before Caps

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



Joined: 15 Jan 2009
Posts: 1

PostPosted: Thu Jan 15, 2009 6:13 pm    Post subject: Insert space before Caps Reply with quote

Sample:
Quote:
FileNameWithTileCase.ext

I am trying to find a "short" way to insert a space *before* any Capitals. (without 26 lines of code)
Quote:
File Name With Title Case.ext

Considerations:
Names with apostrophes may be an issue for some but I would follow with a simple find pattern and replace to fix those instances.
Quote:
D'Arc, L'Rae ----> D' Arc , L' Rae


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


Joined: 09 Mar 2007
Posts: 446
Location: Canada

PostPosted: Thu Jan 15, 2009 8:46 pm    Post subject: Reply with quote

Insert the following regular expression (do not include the single quotes):

Row: 1
Search: '([A-Z])'
Replace: ' \1'

This will insert a space before any upper case letter.
As you mentioned, you can follow this with another row to get rid of multiple spaces or spaces after single quotes.

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