I need to add a regular expression that matches all possible valid E.164 formatted phone numbers.
This regex works fine for for North American phone numbers, but I
This matches only formats like +16174552211 and 16174552211
+16174552211
16174552211
/\A\+?\d{11}\z/
It is especially useful if you are using Twilio and Ruby on Rails