Linked Questions
401 questions linked to/from How to validate phone numbers using regex
63
votes
3
answers
323k
views
How to validate phone number using PHP? [duplicate]
How to validate phone number using php
58
votes
1
answer
209k
views
Regular expression to validate US phone numbers? [duplicate]
Possible Duplicate:
A comprehensive regex for phone number validation
Validate phone number with JavaScript
I'm trying to write a regular expression to validate US phone number of format
(123)...
21
votes
5
answers
31k
views
Objective-c regex to check phone number [duplicate]
Possible Duplicate:
A comprehensive regex for phone number validation
How to validate a phone number (NSString *) in objective-c? Rules:
minimum 7 digits
maximum 10 digits
the first digit must be ...
20
votes
4
answers
87k
views
Regular Expression for finding phone numbers [duplicate]
Possible Duplicates:
A comprehensive regex for phone number validation
grep with regex for phone number
Hello Everyone,
I am new to Stackoverflow and I have a quick question. Let's assume we ...
13
votes
3
answers
27k
views
Phone Number formatting using Regex [duplicate]
Possible Duplicate:
A comprehensive regex for phone number validation
I have an unformatted phone number (guaranteed to be 10 digits) and an unformatted extension (could be null, blank or any ...
7
votes
4
answers
12k
views
Phone number Regex not working with swift [duplicate]
I'm developing an app which works with phone numbers, but I'm having a problem using regex to find the phonenumber in a string.
My app looks through the contact's phone number which can be:
(with ...
4
votes
3
answers
46k
views
Validation for xxx-xxx-xxxx or (xxx)xxx-xxxx [duplicate]
Possible Duplicate:
A comprehensive regex for phone number validation
Whats the regex for
xxx-xxx-xxxx
or
(xxx)xxx-xxxx
I can create regex for the first one with
/^\d{3}-\d{3}-\d{4}$/
but how to ...
3
votes
4
answers
12k
views
Regex optional white space in phone number [duplicate]
Possible Duplicate:
A comprehensive regex for phone number validation
I am pretty close to a full regex that I need. However I can't seem to get an optional white space allowed.
Regex
^(\(?\d{3}...
0
votes
3
answers
85k
views
How do you validate phone number in asp.net? [duplicate]
I need to validate phone number that allows numeric and symbols + - ()
how can i do so in asp.net?
<asp:TextBox ID="TxtNo" runat="server"></asp:TextBox>
<asp:...
8
votes
1
answer
19k
views
What is the best regular expression for phone numbers? [duplicate]
Possible Duplicate:
A comprehensive regex for phone number validation
What regular expression will match valid international phone numbers?
I've seen some posts on StackOverflow on regular ...
3
votes
5
answers
16k
views
Regex number phone [duplicate]
My words (phone numbers) may have in the beginning "00" or "+".
Example number phone:
00xxx xx xxxxxxx
+xxx xx xxxxxxx
(+xxx) xx xxxxxxx
(00xxx) xx xxxxxxx
I have:
Regex regexObj = new Regex(@"^\(...
0
votes
5
answers
11k
views
regex for mobile number validation in java [duplicate]
I want to have phone number in working combination of '0' followed by 10 digit mobile number (or) 0091 folllowed by 10 digit mobile number (or) +91 followed by 10 digit number.
1) 0 followed and +91 ...
3
votes
1
answer
20k
views
New to Ruby on Rails looking for a phone number validation [duplicate]
I am new to Ruby on Rails, looking for any suggestions to validate a phone number to be xxx-xxx-xxxx. Appreciate any suggestions. My phone_number column type is a string. Thanks!
3
votes
2
answers
6k
views
How to validate phone number with a plus (+) sign and "(0)" by regex? [duplicate]
I see a lot of solutions to validate a phone number by Regex... But I want some characters in my phone number such as +31(0)12 for example.
If you have string with the value +31(0)12-1234567. This is ...
1
vote
2
answers
21k
views
Phone Number Validation PHP [duplicate]
Possible Duplicate:
A comprehensive regex for phone number validation
PHP: Validation of US Phone numbers
I'm trying to validate a phone number using preg_match, but any time I type in the ...