Home > REGEX > Check Mobile Number with REGEX

Check Mobile Number with REGEX

I want to share what I’ve learnt using REGEX.

This below expression can be use to simply matching mobile number (with variation using “+” in front or not, e.g. : “+628151234” Or “081412345” )  :

^[\+0-9][0-9]{9,}

It means: Start with “+” or number, then follow by number, with minimum 9 character length.

Categories: REGEX Tags:
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: