Find Text Parser find 2 phonenumber patterns one in URL

Hello, I’m having an issue with the text parser module.

I set it up to detect phone numbers in multiple answers submitted via Calendly. However, recently it’s also picking up patterns in LinkedIn URLs and incorrectly identifying them as phone numbers.

Does anyone know how I can prevent the module from treating this second match as a phone number?

Right now, it’s triggering the rest of my scenario twice, causing all the following modules to run twice as well.

Welcome to the Make community!

Could you go to regex101.com, paste in your Pattern at the top and paste a complete/full example text you are trying to match from below it?

Then, save the regex example and share the link with us here.

This will allow others to assist you here with your pattern. Thanks!

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.

Hi @samliew,

I only changed a little bit the variabel as this contains personal information :wink:

Thank you for your time!

Hey there,

you pasted the text in the regex field and didn’t provide the current regex.

Nevertheless, it looks like you are matching numbers and this is causing the second match. So something like this maybe:

\+\d[\d\s]{6,}

This should start with matching the + first.

Hi @Stoyan_Vatov

But i use the match elements module from text-parser.

How can i change this to match the + first?

Welcome to the Make community!

As provided by Stoyan above, you can then use a Text Parser “Match Pattern” module with this Pattern (regular expression):

\+\d[\d\s]{6,}

Proof https://regex101.com/r/7nqCpv/2

Important Info

  • :warning: Global match must be set to NO!

For more information, see the Text Parser page in the Make Help Center:

Match Pattern
The Match pattern module enables you to find and extract string elements matching a search pattern from a given text. The search pattern is a regular expression, which is a sequence of characters in which each character is either a metacharacter, having a special meaning, or a regular character that has a literal meaning.

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.

2 Likes