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 

Negative search in name filter by Regex

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



Joined: 24 Aug 2011
Posts: 6

PostPosted: Mon Aug 29, 2011 8:06 pm    Post subject: Negative search in name filter by Regex Reply with quote

Situation:

I like to change the date format (using the dateformater plugin) only for files, which has NOT the european date format.

Example files:

abc 01.08.11 abc.pdf
abc 01-08-11 def.pdf
abc 25-10-2011 xyz.pdf

Selection by name filter:
only the files, which does NOT meet the format xx.xx.xx should be selected.


My test:

The positive selection by this statement works

(?E)(.*)(\d{2}\.\d{2}\.\d{2}).*


But i was not able to use a negative statement with help of "^"

What is your proposal ?

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


Joined: 09 Mar 2007
Posts: 446
Location: Canada

PostPosted: Tue Aug 30, 2011 2:39 am    Post subject: Reply with quote

I think the problem is the (?E) which is one of the regular expression extensions I added. THe extensions can only be used in the renaming creator and cannot be used in the name filters.

Try this in the name filter:

(.*)(\d{2}[^\.]\d{2}[^\.]\d{2}).*


Hope that helps.

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