Skip to main content
Best answer

I'd like to remove a substring and all following text from a string

  • June 11, 2022
  • 3 replies
  • 1068 views

Patrick.emin
Forum|alt.badge.img

Hi, I'd like to remove a substring and all following text from a string, so that for example "This is an example number one" and "This is an example number two" become "This is an example". I looked at the Formatter and regex expressions but to no avail. Thanks for your help.

Best answer by christina.d

I used in fact the formatter Split function, with the test looks like I’ll manage with that.

Awesome! Thanks for keeping us in the loop for how you sorted this, @Patrick.emin!

For anyone following along I also wanted to also include Satya’s solution as well. 🤗

Try exploring Code By Zapier you might be able to achieve this specific usecase 

 

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

Satya09
Forum|alt.badge.img+7
  • Beginner
  • June 12, 2022

Hello @Patrick.emin 

Try exploring Code By Zapier you might be able to achieve this specific usecase 


Patrick.emin
Forum|alt.badge.img
  • Author
  • Beginner
  • June 12, 2022

Thanks, I used in fact the formatter Split function, with the test looks like I’ll manage with that.


christina.d
Forum|alt.badge.img+9
  • Zapier Staff
  • Answer
  • June 17, 2022

I used in fact the formatter Split function, with the test looks like I’ll manage with that.

Awesome! Thanks for keeping us in the loop for how you sorted this, @Patrick.emin!

For anyone following along I also wanted to also include Satya’s solution as well. 🤗

Try exploring Code By Zapier you might be able to achieve this specific usecase