# File Iterator - Filter Regex

**URL:** <https://matillioncommunity.discourse.group/t/file-iterator-filter-regex/3421>\
**Category:** Matillion ETL\
**Tags:** matillion-etl\
**Created:** [September 17, 2025, 9:51pm UTC](https://matillioncommunity.discourse.group/t/file-iterator-filter-regex/3421 "2025-09-17T21:51:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jvaughn](https://sea2.discourse-cdn.com/flex002/user_avatar/matillioncommunity.discourse.group/jvaughn/32/1372_2.png) [@jvaughn](https://matillioncommunity.discourse.group/u/jvaughn)\
**Post date:** [September 17, 2025, 9:51pm UTC](https://matillioncommunity.discourse.group/t/file-iterator-filter-regex/3421/1 "2025-09-17T21:51:31Z")

</div>

I am using the File Iterator component. I am looking for specific .txt files in an S3 bucket. I have the following regex in the Filter Regex field:

`^${var_File_Name}\S*.txt$`

- `${var_File_Name}` = test\_details

- full file name = test\_details\_20250101.txt

I have tried without the `^` and the `$`. I’ve even went as far as to removing the job variable and `\S`. I have the same regex in a separate File Iterator for an SFTP input, works perfectly fine.

We have two servers, one with 1.75.35 and another on 1.72.4, I’m having this issue on both.

Any ideas what could be going on?

---

<div class="post-metadata">

**Author:** ![Joe-Community-Manager](https://sea2.discourse-cdn.com/flex002/user_avatar/matillioncommunity.discourse.group/joe-community-manager/32/897_2.png) [@Joe-Community-Manager](https://matillioncommunity.discourse.group/u/Joe-Community-Manager)\
**Post date:** [September 22, 2025, 11:32am UTC](https://matillioncommunity.discourse.group/t/file-iterator-filter-regex/3421/2 "2025-09-22T11:32:10Z")

</div>

Hello @jvaughn

Thanks for your post and welcome to the Matillion Community.

I spoke to a colleague who mentioned that the Kleene star `*` now means “0 or more repetitions of the previous token”, rather than “0 or more of **any** token”.

That’s not a wildcard, as you’d expect.

What you want is `.`, which matches any character, and the dot that’s there needs to be quoted.

The regex should be something like:

```auto
${var_File_Name}\S.*\.txt$

```

I hope this helps, please keep me posted.

Kind regards, Joe
