Skip to main content
Best answer

Removing Last Character IF

  • December 28, 2021
  • 3 replies
  • 233 views

I’m trying to create a Zap that removes the last character in a string of text ONLY IF the last character is a dash (-). Is there a way to do that with Zapier Formatter?

Best answer by mzsadiekBest answer by mzsadiek

If there are no other dashed in the text, then you can just use Replace within the formatter to replace the dash with nothing, and it will be removed.

View original
Did this topic help you find an answer to your question?
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

Danvers
Forum|alt.badge.img+12
  • Zapier Staff
  • 3731 replies
  • December 30, 2021

Hi @jeffro! If you’re able to share your solution, that would be great! It will help any other members who have the same question. Thanks!


  • Author
  • New
  • 1 reply
  • December 29, 2021

Thanks for the reply. There are other hyphens in the string, but I was able to get it figured out.


mzsadiek
Forum|alt.badge.img+5
  • Zapier Expert
  • 89 replies
  • Answer
  • December 29, 2021

If there are no other dashed in the text, then you can just use Replace within the formatter to replace the dash with nothing, and it will be removed.