Best answer

Removing Last Character IF

  • 28 December 2021
  • 3 replies
  • 198 views

Userlevel 1

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?

icon

Best answer by mzsadiek 29 December 2021, 11:55

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 3
Badge +4

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.

Userlevel 1

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

Userlevel 7
Badge +12

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!