I am trying to write a regular expression that matches theese cases.
Phone number can be: 8 digits 0-9 OR 12 digits 0-9 OR 12 digits 0-9 and a + sign So: 12345678, 0012345678, +0012345678 are valid options
[RegularExpression("^[0-9]{8})|[0-9]+{12}|[0-9]{11}$", ErrorMessage = "Invalid phone")]
Would also be nice that on the + validation case, the plus sign have to be in the beginning (following 10 digits) and on the 12 digits validation there have to be 00 first (then following 10 digits)