DEV Community

Mehul Lakhanpal
Mehul Lakhanpal

Posted on

Extract mobile number using regex

Alt Text

Note: It would be useful only when there are a fixed number of digits in a valid mobile number. (Some countries have a variable number of digits I guess)

Please modify the country code based on the needs.

Thanks for reading πŸ’™

Follow @codedrops.tech for daily posts.

Instagram ● Facebook

Micro Learning ● Web Development ● Javascript ● MERN stack

codedrops.tech

Top comments (0)