Im working on an mvc3 application that will be deployed globally and have a question about phone numbers and validation.

I want to display a textbox that allows customers to insert their phone number correctly based on the machines settings.

I know I can apply all of my regex's onto the model's PhoneNumber field.

If a user is coming from the US vs the UK there are 2 different regexs to be used.

Lets say a US based user inserts an invalid phone number how can I tell the application only to validate the phone number using the US format based on the users culture not against the entire range of regex's?

I dont want the user to be told that his/her phone number is not formatted in UK format as that means nothing to them.

Hey ChrisF, Thanks for that link that gets me a little closer! Yes well aware there is many more I just said 2 to explain what I am tying to do. I capture their country within the form so I could use that to determine what regex's to use for that country.
–
Diver DanOct 10 '11 at 21:48