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 

Weird problem with trailing dot in replacement name

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



Joined: 18 Oct 2010
Posts: 5

PostPosted: Mon Oct 18, 2010 11:28 pm    Post subject: Weird problem with trailing dot in replacement name Reply with quote

Hi *,

I'm trying to rename author's folders into the form
"lastname, firstname (initial.)*"

I'm using the following lines (the two line approach takes care of the occasional "jr." appendix):

1s:
Code:
(?=^[^,]+$)(?!.*[jJ][rR]\.?$)^((\w+\.?[ ]+)+)(\w+)$

1r:
Code:
\3, \1


2s:
Code:
(?=^[^,]+$)(?=.*[jJ][rR]\.?$)^((\w+\.?[ ]+)+)(\w+)[ ]*[jJ][rR]\.?$

2r:
Code:
\3, \1 jr.


3s:
Code:
 
# two blanks
3r:
Code:
 
# one blank

4s:
Code:
 (\w)\s*$
# one leading blank
4r:
Code:
 \1.
# one leading blank

I'm encountering the following problem: A folder named "Jean M. Auel" is correctly shown in the preview line as "Auel, Jean M.", but the scan result shows no trailing dot. My 4th s/r line was specifically designed to remidy this issue by adding a trailing dot to trailing initials, without success.

Can anyone help me?
_________________
So long,
Tillomar
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 09 Mar 2007
Posts: 448
Location: Canada

PostPosted: Tue Oct 19, 2010 2:46 am    Post subject: Reply with quote

Hi,

There is a minor bug with the previewer. It should not be showing the trailing period because windows does not allow file or folder names to end in a period.

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



Joined: 18 Oct 2010
Posts: 5

PostPosted: Thu Oct 21, 2010 7:09 pm    Post subject: Reply with quote

admin wrote:
because windows does not allow file or folder names to end in a period


Ok thanks, seems to have been a stupid question...
_________________
So long,
Tillomar
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 -> General Support 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