I'm trying to validate a phone number in the E.164
format using a RegEx, but it doesn't seem to be working.
Here's the RegEx:
java
Pattern e164p = Pattern.compile('\+?\d{10,14}');
Error message:
Error: Compile Error: Invalid string literal '\+?\d{10,14}'. Illegal character sequence '\+' in string literal.
Any clue?