Skip to main content
Best answer

Remove links and phrases, using Text Formatter?

  • December 18, 2021
  • 1 reply
  • 1659 views

Is there a way to remove links, or anything after a trigger phrase like “https”, from a text string using Text Formatter?

For example, I am trying to create a Twitter > Discord automation. Tweets with “.,” at the end will be posted by Zapier, however I’d like to remove the “.,” and the the “t.co” link at the end before it reaches Discord. 

 

Best answer by mzsadiek

HI @ty.rex. Yes, you can remove parts from phrases with ‘Formatter by Zapier’. To remove the ‘.,’, you can choose ‘Replace text’ and then let it search for ‘.,’ and leave the replace value empty. That way, it will just delete the .,. You can do the same for the url, by first extracting the url with the Formatter, and then replacing the url with an empty value.

 

if the url and the ., are always together at the end, you can also use ‘Split Text’, and split based on the url, and pass the first part to Discord.

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.

1 reply

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

HI @ty.rex. Yes, you can remove parts from phrases with ‘Formatter by Zapier’. To remove the ‘.,’, you can choose ‘Replace text’ and then let it search for ‘.,’ and leave the replace value empty. That way, it will just delete the .,. You can do the same for the url, by first extracting the url with the Formatter, and then replacing the url with an empty value.

 

if the url and the ., are always together at the end, you can also use ‘Split Text’, and split based on the url, and pass the first part to Discord.