Displaying page
of
pages;
Items to
Title |
Test
Details
Outlook account recovery help
|
Expression |
utlook account recovery australia |
Description |
Hello, my name is Zara Aria live in Australia. I did graduation from Australia University in computer science and working with Outlook Customer Support Company; if any issue with your email account calls Outlook Support Phone number. |
Matches |
utlook account recovery australia |
Non-Matches |
https://outlook.supportnumberaustralia.com.au/ |
Author |
Rating:
zaraaria
|
Title |
Test
Details
US phone numbers with no punctuation
|
Expression |
^(?:[2-9]\d{2}?|[2-9]\d{2})[2-9]\d{2}?\d{4}$ |
Description |
US Phone Numbers: This regular expression for US phone numbers conforms to NANP A-digit and D-digit requirments (ANN-DNN-NNNN). Area Codes 001-199 are not permitted; Central Office Codes 001-199 are not permitted. Format validation requires 10 digit number only with no punctuation. |
Matches |
2222222222 |
Non-Matches |
222-222-2222 (222) 222-2222 |
Author |
Rating:
Not yet rated.
Greg Gillette
|
Title |
Test
Details
Yahoo Contact Number UK
|
Expression |
yahoo contact number |
Description |
Dialing the toll-free Yahoo Phone Number UK is without a doubt the most ideal way to contact Yahoo support team. In any case, apart from the Yahoo helpline; there are some different ways too by which you can contact Yahoo phone number as listed below.
|
Matches |
https://www.helpphonenumber.co.uk/ |
Non-Matches |
https://www.helpphonenumber.co.uk/ |
Author |
Rating:
Not yet rated.
yahoohelpphonenumber
|
Title |
Test
Details
Italian phone number
|
Expression |
^(?<countryCode>((\+)39)[ ]?)?\(?(?<areaCode>0\d{2,3})\)?[ \-]?(?<centralOfficeCode>\d{3})[ \-]?(?<lineNumber>\d{3,4})$ |
Description |
This regex matches all landline phone numbers in Italy.
I have assigned a name to each group so that you can extract the groups, concatenate them and check whether or not the string is made of 10 characters.
I have trid to achieve this goal with lookahead and lookbacks but those methods could be deceived by phone numbers with more than 10 characters becuase of the brackets, the blank spaces and the dashes. Then I tought that this was the best solution.
Here's an example php script to validate a phone number:
$phoneNumber = [Your phone number];
$regex = "/^(?<countryCode>((\+)39)[ ]?)?\(?(?<areaCode>0\d{2,3})\)?[ \-]?(?<centralOfficeCode>\d{3})[ \-]?(?<lineNumber>\d{3,4})$/";
//I make sure that the string matches the regex
if(preg_match($regex, $phoneNumber)){
/*The string matches the regex, now i have to make sure the
phone number is made by 10 characters. */
preg_match($regex, $phoneNumber, $matches);
if(strlen($matches["areaCode"].$matches["centralOfficeCode"].$matches["lineNumber"]) == 10){
echo "Valid phone number";
} else {
echo "Invalid phone number";
}
} else {
echo "Invalid phone number";
}
PS: If all the digit are not separated by blank spaces or dashes the areaCode group will be made by 4 digits but the script works the same. |
Matches |
+39 0801231234 | +390121231234 | 0341231234 | +39 056-1231234 | +39099-1231234 | 080-1231234 | +39 080-123-1234 | +39080-123-1234 | 080-123-1234 | +39 080 123 1234 | +39080 123 1234 | 080 123 1234 | +39 (080)-123-1234 | +39(080)-123-1234 | (080)-123-1234 | +39 0123-123124 | +390123-123123 | 0123-123123 | +39 0123-123-123 | +390123-123-123 | 0123-123-123 | +39 0123 123 123 | +390123 123 123 | 0123 123 123 | +39 (0123)-123-123 | +39(0123)-123-123 |
Non-Matches |
+39 01234-123124 | +390123-(123)123 | 0123-123(123) | +40 0123-123-123 | +410123-123-123 | 012-1234-123 | +39 01234 123 123 | +390123 123 12453 |
Author |
Rating:
Not yet rated.
Gabriele Colapinto
|
Title |
Test
Details
Phone Numbers
|
Expression |
^(\d)(\s)(\d)*(-)(\d)*(-)(\d)* |
Description |
Matches any number following the 1 800 phone method. It's not 100% foolproof so please be wary - just wanted to present my legitimate, raw regex without having to look up anything on Stack Overflow. Thank you.
Link to my GitHub: https://github.com/StoddardSpencer96 |
Matches |
1 902-444-444 1 904-565-5555 1 419-444-4444 1 902-44-3333 (this one shouldnt match) |
Non-Matches |
23 904-5555-5555 1 902-44-3333 (this is where the number should be) |
Author |
Rating:
Not yet rated.
Spencer Stoddard
|
Title |
Test
Details
Phone Number
|
Expression |
^([\d])([\s])([\d]){3}([-])([\d]){3}([-])([\d])* |
Description |
Matches the 1 800-8000 format.
Link to Github: https://github.com/StoddardSpencer96 |
Matches |
1 902-444-4444 1 405-543-3000 1 910-243-321 |
Non-Matches |
1902-44-4-5-3-2-2 1 9023333333 1-902-3332222 |
Author |
Rating:
Not yet rated.
Spencer Stoddard
|
Title |
Test
Details
Egyptian Mobile Phone Numbers 2021
|
Expression |
^01[0-2,5]{1}[0-9]{8}$ |
Description |
this regex can validate the Egyptian mobile phone numbers for the 4 Major Service Providers
(Orange|We|Etisalat|Vodafone)
|
Matches |
01151151111-01208939599-01001111111 |
Non-Matches |
0115115111-0120893959-01611112935 |
Author |
Rating:
Not yet rated.
Mohammed Adel
|
Displaying page
of
pages;
Items to