Best answer

When I extract mobiles from the array, for some reason one is extracted without the last digit

  • 3 November 2022
  • 1 reply
  • 22 views

Userlevel 1

When I extract mobiles from the array, for some reason one is extracted without the last digit... how to solve it?

My result, when i choose “Formatter by Zapier” → “Text” → “Exctract mobile number”
Data

 

icon

Best answer by Danvers 3 November 2022, 15:08

View original

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 +12

Hi @SanyaCLAUSS!

I’m not too sure why the extract phone number is having difficulty with that phone number, but I can suggest an alternative. 

Instead of using the extract phone number, use the extract pattern transform. Then use the following regex expression:

(?<!\d)\d{8}(?!\d)

And swap out the {8} with the number of digits in the phone numbers. If you want to give that a try, it’s worth testing it on a few different phone numbers to make sure that it works correctly.