Filter not matching text when spacing around special characters causes inconsistencies

What are you trying to achieve?

I’m trying to filter articles (from an HTTP module) so that only ones matching certain FX pairs (like EUR/USD, USD/JPY, etc.) pass through.

Steps taken so far

Context:
• Titles in the API often have inconsistent spacing:
e.g. EUR / USD Forecast: Euro remains below key resistance area
while the subscriber’s pair from Airtable is formatted as EUR/USD (no spaces).
• I’m iterating over both the articles and the subscriber’s FX pairs.
• I just want the filter to recognize EUR/USD even if the title has spaces around the slash.

What I’ve Tried:

  1. Regex-based solutions like: “(?i)\b” & replace(41.Value; “/”; “\s*/\s*”) & “\b”
    → Didn’t work consistently — some obvious matches still failed.

  2. Variants using \h*, \s*, or double escaping. Same issue.

  3. “Contains (case-insensitive)” + replace() normalization attempts:
    • Tried to remove spaces in both title and pair (nested replace chains).
    • Still doesn’t match reliably; titles that clearly contain the pair don’t pass.

  4. Tried placing the filter both before and after the Array Aggregator. Same behavior.

What I Need:
A filter expression or module setup that:
• Matches EUR/USD even when the title has variations like EUR / USD, EUR /USD, EUR/ USD, etc.
• Works reliably inside Make’s filter logic (not just in regex testers).

Hi @Iftekhar_Hossain ,

Using a filter with the Condition set to “Matches pattern (case insensitive)“, and this RegEx worked for me:

EUR\s*\/\s*USD

Let us know how you get on.

Regards, Terry.

Hey Terry,

Appreciate you taking the time to reply and share that regex — I actually managed to get it working shortly after! Ended up finding a setup that fits exactly what I needed.

Thanks again for jumping in to help though, really appreciate it. :folded_hands:

Best,

Iftekhar

1 Like