Regular Expression Validation For Indian Phone Number and Mobile number

For land Line Number 03595-259506 03592 245902 03598245785 you can use this \d{5}([- ]*)\d{6} NEW for all 😉 OLD: ((\+*)(0*|(0 )*|(0-)*|(91 )*)(\d{12}+|\d{10}+))|\d{5}([- ]*)\d{6} NEW: ((\+*)((0[ -]*)*|((91 )*))((\d{12})+|(\d{10})+))|\d{5}([- ]*)\d{6} 9775876662 0 9754845789 0-9778545896 +91 9456211568 91 9857842356 919578965389 03595-259506 03592 245902 03598245785 this site is useful for me, and maby for you .;)http://gskinner.com/RegExr/

How to get the mobile number of current sim card in real device?

You can use the TelephonyManager to do this: TelephonyManager tm = (TelephonyManager)getSystemService(TELEPHONY_SERVICE); String number = tm.getLine1Number(); The documentation for getLine1Number() says this method will return null if the number is “unavailable”, but it does not say when the number might be unavailable. You’ll need to give your application permission to make this query by adding … Read more

How to get current SIM card number in Android?

I think sim serial Number and sim number is unique. You can try this for get sim serial number and get sim number and Don’t forget to add permission in manifest file. TelephonyManager telemamanger = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); String getSimSerialNumber = telemamanger.getSimSerialNumber(); String getSimNumber = telemamanger.getLine1Number(); And add below permission into your Androidmanifest.xml file. <uses-permission android:name=”android.permission.READ_PHONE_STATE”/> … Read more

What’s the longest possible worldwide phone number I should consider in SQL varchar(length) for phone

Assuming you don’t store things like the ‘+’, ‘()’, ‘-‘, spaces and what-have-yous (and why would you, they are presentational concerns which would vary based on local customs and the network distributions anyways), the ITU-T recommendation E.164 for the international telephone network (which most national networks are connected via) specifies that the entire number (including … Read more

Formatting Phone Numbers in PHP

This is a US phone formatter that works on more versions of numbers than any of the current answers. $numbers = explode(“\n”, ‘(111) 222-3333 ((111) 222-3333 1112223333 111 222-3333 111-222-3333 (111)2223333 +11234567890 1-8002353551 123-456-7890 -Hello! +1 – 1234567890 ‘); foreach($numbers as $number) { print preg_replace(‘~.*(\d{3})[^\d]{0,7}(\d{3})[^\d]{0,7}(\d{4}).*~’, ‘($1) $2-$3’, $number). “\n”; } And here is a breakdown … Read more

Phone validation regex

Please refer to this SO Post example of a regular expression in jquery for phone numbers /\(?([0-9]{3})\)?([ .-]?)([0-9]{3})\2([0-9]{4})/ (123) 456 7899 (123).456.7899 (123)-456-7899 123-456-7899 123 456 7899 1234567899 are supported

List of phone number country codes [closed]

I generated json file in the following format (Hope that it will help you) : { “countries”: [ { “code”: “+7 840”, “name”: “Abkhazia” }, { “code”: “+93”, “name”: “Afghanistan” }, { “code”: “+355”, “name”: “Albania” }, { “code”: “+213”, “name”: “Algeria” }, { “code”: “+1 684”, “name”: “American Samoa” }, { “code”: “+376”, “name”: … Read more