Skip to main content
Question

\d and \d+ not working in Extract Patterns regexp?

  • 12 July 2024
  • 1 reply
  • 11 views

Hi,

 

In my regular expression for extracting a text string it seems \d and \d+ don’t work like they are supposed to.

 

The string I’m looking to extract is “Nomen Nescio on maksanut laskun 490” (the name obviously varies), for which I thought “\w+ \w+ on maksanut laskun \d+” should work (it works on https://regex101.com/). This however produces no output in Zapier. 

 

When I remove the \d+ the regexp works as anticipated, yielding “Nomen Nescio on maksanut laskun”.

 

How could I catch the figure that comes after the text “… on maksanut laskun”?

 

Rgds,

 

Björn

 

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

Userlevel 7
Badge +14

Hi @BjörnE 

For us to have more context, post screenshots with how your Zap step is configured in EDIT mode.