Skip to main content
Question

REGEX formula to remove all text before a certain character

  • March 2, 2023
  • 3 replies
  • 5016 views

SC5

I’m struggling with the Regex code in a formatter Zap.

I’m trying to remove all text/characters before the :   just leaving all the text that follows the :

Ive tried the excel regex formula but its not computing.

example:

data pulled is

user.name: Accepted

I want it to only produce Accepted to push to my google sheet.

can anyone help me figure out the formula? 

 

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

Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • March 3, 2023

Hi @SC5 

Good question.

Try this instead…

Use Formatter > Text > Split (split at :[:space:]) and keep the last segment.


shalgrim
Forum|alt.badge.img+8
  • Zapier Staff
  • March 3, 2023

Troy’s suggestion is good. If you want to use regex then .*\:(.*) should work. I tried that on your example and it worked.


Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • March 3, 2023

@SC5

I asked ChatGPT and here’s the response: