Skip to main content
Question

Simple regex with [] not working in Zapier Formatter Replace

  • October 16, 2025
  • 4 replies
  • 33 views

Hi all,

I am having issues matching to my string in regex and narrowed things down to a simple “find” query that really should work but doesn’t.

The screenshot below really gives all of the information needed. The result should be that all instances of the characters “a” and “e” should be deleted, but nothing happens. This works when I use python for regex, it just doesn’t work in Zapier.

I just bought the Professional plan (annual) for $250 thinking that the issue was with my free plan’s limitation on regex. It did not fix the issue.

 

4 replies

Sparsh from Automation Jinn
Forum|alt.badge.img+6

Hey ​@lemonsmiles,

Try to use two Formatter→ Text→ Replace to replace first a with blank and then another formatter to replace e with blank. You can see more about it here- https://help.zapier.com/hc/en-us/articles/8496278339725-Find-and-replace-values-in-your-Zaps. I don’t think it directly support regex. Formatter → Text → Extract Pattern supports regex but for your usecase, using two Formatter with replace might be more ideal. 

Alternatively, you can also use a Code by Zapier step to replace it. 

Hope it helps!


  • Author
  • New
  • 1 reply
  • October 16, 2025

Hi Sparsh,

Really what I want to do in the end is a complex replacement which re-formats links from a slack format to HTML. But I need to be able to use a character class [ ] in the regex for it, and [ ] isn’t working. So I’m not looking for a workaround to specifically do replacement of [ae], I am asking about how to get character classes working as they should.

Thanks for your help,

Felix


Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • 34066 replies
  • October 16, 2025

Hi ​@lemonsmiles 

Zap action: Formatter > Text > Replace

This does not support regex.

 

OPTIONS


Sparsh from Automation Jinn
Forum|alt.badge.img+6

Hey ​@lemonsmiles,

Use Formatter → Text → Extract Pattern as it supports regex buy you probably will have to add more steps to replace as it only extracts the pattern or Code by Zapier step for more complex formatting. Hope it helps!