Multiple Wildcard Patterns

If you have a new question you’d like our support staff to post a response to, please visit our customer community, GoAnywhere Insiders, to pose the question in our Discussion Boards. We have a thread “Ask Our Tech Experts” that our support team monitors on a regular basis, or you can start a new discussion where other GoAnywhere users and support staff can weigh in. Log in or create your new account at https://insiders.goanywhere.com.

If you need an immediate response, please create a support ticket or contact our support team by email at [email protected].
3 posts Page 1 of 1

abarry1

Posts: 4
Joined: Fri Feb 17, 2017 11:02 am

Post by abarry1 » Mon Feb 27, 2017 2:04 pm
Hello All,

I use to do this at a previous job, but I just cannot remember how I was doing it.

I am deleting files using the wildcard filters and I want to be able to put multiple file types into the same pattern.

For example, I am doing the following:

<delete version="1.0">
<fileset dir="/opt/local/GoAnywhere_Services/userdata/webdocs/aaaabbbb">
<wildcardFilter>
<include pattern="*.tif" />
<include pattern="*_ERMV_*" />
<include pattern="*_TIFF_*" />
</wildcardFilter>
</fileset>
</delete>

What I would like to do is:

<delete version="1.0">
<fileset dir="/opt/local/GoAnywhere_Services/userdata/webdocs/aaaabbbb">
<wildcardFilter>
<include pattern="*.tif"; "*_ERMV_*";"*_TIFF_*" />
</wildcardFilter>
</fileset>
</delete>

Any recommendations on how I can accomplish this?

Thanks in advance,
Adam

Support_Rick

Support Specialist
Posts: 592
Joined: Tue Jul 17, 2012 2:12 pm
Location: Phoenix, AZ

Post by Support_Rick » Thu Mar 09, 2017 8:52 am
The first option is your only "wildcard" option. You can do the other utilizing "RegEx".
Rick Elliott
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696

abarry1

Posts: 4
Joined: Fri Feb 17, 2017 11:02 am

Post by abarry1 » Wed Mar 15, 2017 3:46 pm
Thanks Rick, yes, I have decided to use regex instead.
3 posts Page 1 of 1