Skip to main content
Best answer

Extract pattern with Regex help

  • July 5, 2020
  • 3 replies
  • 1194 views

I’m trying to extract a pattern using REGEX and it works just fine in regex101 and in Integromat.

 

But in Zapier it doesn’t return the value. Is there some formatting error I’m running into?

Here is the regex code: 

^\s*(?<name>.+)\scompleted

here is the regex101 link to see the text I’m extracting from. 

https://regex101.com/r/XfR6Jx/1
 

any help is appreciated. Thanks community!

Best answer by ikbelkirasan

@Coach Mike - The problem is that you’re using the PHP flavor in regex101. However, Zapier supports the Python flavor.

I have tweaked it for you: \s*(?P<name>.+)\scompleted

 

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

ikbelkirasan
Forum|alt.badge.img+12
  • Zapier Solution Partner
  • Answer
  • July 6, 2020

@Coach Mike - The problem is that you’re using the PHP flavor in regex101. However, Zapier supports the Python flavor.

I have tweaked it for you: \s*(?P<name>.+)\scompleted

 


  • Author
  • Beginner
  • July 6, 2020

I am so grateful. That worked perfectly! @ikbelkirasan 


ikbelkirasan
Forum|alt.badge.img+12
  • Zapier Solution Partner
  • July 6, 2020

@Coach Mike - My pleasure! Glad I was able to help!