How to Filter Data Based on User Given Input?

What I would do is to use an API to return an internationally formatted number. That way you can make sure it’s a valid number, and it’s well-formatted.

Disclaimer: I’m using a random phone number from https://www.randomphonenumbers.com/.

The API in question:

Capped at 50 per day and 10000 per month on free tier.

2 Likes