Skip to content

Multiple Wildcard Patterns

Post any question you may have in regards to GoAnywhere MFT and let our talented support staff and other users assist you.
If you need a quicker response, please create a support ticket via the customer portal my.goanywhere.com or contact our support team by email at [email protected].
  • abarry1 Offline
  • Posts: 4
  • Joined: Fri Feb 17, 2017 11:02 am

Multiple Wildcard Patterns

Post by abarry1 »

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 Offline
  • Support Specialist
  • Posts: 590
  • Joined: Tue Jul 17, 2012 2:12 pm
  • Location: Phoenix, AZ
  • Contact:

Re: Multiple Wildcard Patterns

Post by Support_Rick »

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 Offline
  • Posts: 4
  • Joined: Fri Feb 17, 2017 11:02 am

Re: Multiple Wildcard Patterns

Post by abarry1 »

Thanks Rick, yes, I have decided to use regex instead.
Post Reply