Best answer

How do I delete a text after a detected phrase using Zapier?

  • 27 September 2023
  • 3 replies
  • 160 views

Userlevel 1

Hi, I’d like zapier to delete the rest of the text after a phrase that it detects.

Example: after it detects a word “dog” in a sentence, it will leave the beginning, but delete “dog” and everything that follows.

I tried using formatter by zapier and filter by zapier, but I could’t do it.

Thanks for your help :))

icon

Best answer by MohSwellam 27 September 2023, 17:17

View original

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

3 replies

Userlevel 7
Badge +8

Hi @Franek 

 

This can be done in different ways: 

 

  1. formatter by Zapier can do that if you choose the event Text and the Transform “Split Text” with the separator being “dog” and the Segment Index being First. 
  2. You can always use Code by Zapier if you want to do some advance editing
Userlevel 1

Thank you! That worked :))

Userlevel 7
Badge +6

That’s awesome @Franek! Shoutout to MohSwellam for pointing you in the right direction!

If you have any other questions, please don’t hesitate to reach out to the Community. We’re always happy to help! 😊