hiteksoftware.com Forum Index hiteksoftware.com
User discussion forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

REGEXF=\Z.gpg not working in ftp get.

 
Post new topic   Reply to topic    hiteksoftware.com Forum Index -> Variables and Regular Expressions
View previous topic :: View next topic  
Author Message
panickc



Joined: 12 Dec 2006
Posts: 25

PostPosted: Fri Mar 21, 2008 6:29 am    Post subject: REGEXF=\Z.gpg not working in ftp get. Reply with quote

I have an ftp set up to retrieve only files ending in .gpg. I saw another post that said to use \Z for the end of line check, since some of the files have 2 extensions, ie blah.gpg.meta, and I only want the files ending in .gpg.

When I run the ftp get with REGEXF=\Z.gpg it says none of the files pass.

I'm using Automize 7.42.

Thanks for any help.

-cp
Back to top
View user's profile Send private message
melvin
Site Admin


Joined: 25 May 2006
Posts: 596
Location: Santa Barbara, california

PostPosted: Fri Mar 21, 2008 9:11 am    Post subject: Reply with quote

Unfortunately, java 1.4 regex does not support \Z like documented in regular regex.

Instead use:
REGEXF=.gpg$

$ should be used after the required substring to match end of string
Back to top
View user's profile Send private message Send e-mail
panickc



Joined: 12 Dec 2006
Posts: 25

PostPosted: Fri Mar 21, 2008 9:32 am    Post subject: Reply with quote

Thank you very much for the quick reply!

-cp
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    hiteksoftware.com Forum Index -> Variables and Regular Expressions All times are GMT - 8 Hours
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 © 2001, 2005 phpBB Group