How to validate phone number with a plus (+) sign and "(0)" by regex?

Viewed 4811

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 a correct notation of a phone number. How could you validate by using Regex?

I have tried this:

Regex phonePattern = new Regex(@"\+\d{3}?(\0)\d*\-\d*"); 

What do I wrong?

Other examples are: +31(0)6-12345678 or +31(0)123-123456

2 Answers
Related