| View previous topic :: View next topic |
| Author |
Message |
panickc
Joined: 12 Dec 2006 Posts: 25
|
Posted: Fri Mar 21, 2008 6:29 am Post subject: REGEXF=\Z.gpg not working in ftp get. |
|
|
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 |
|
 |
melvin Site Admin
Joined: 25 May 2006 Posts: 596 Location: Santa Barbara, california
|
Posted: Fri Mar 21, 2008 9:11 am Post subject: |
|
|
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 |
|
 |
panickc
Joined: 12 Dec 2006 Posts: 25
|
Posted: Fri Mar 21, 2008 9:32 am Post subject: |
|
|
Thank you very much for the quick reply!
-cp |
|
| Back to top |
|
 |
|