israel phone number regex

//cellular israeli regex
/^05\d([-]{0,1})\d{7}$/

//all numbers israel
/^0\d([\d]{0,1})([-]{0,1})\d{7}$/

Update one Regex for all Isrealy numbers

^\+?(972|0)(\-)?0?(([23489]{1}\d{7})|[5]{1}\d{8})$

Advertisements

One thought on “israel phone number regex

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