title: How to Validate Phone Number format
body: <p>i am about to create a validation for phone number format..The format is 10 digit including the  plus sign eg:+0133999504. Even though I have declare the pattern which is I try to disallow the "-" symbol or any other characters, but the validation is not working. Any other Idea or solution?</p>
  
  <pre><code>1st I declared the string regex:
  
  String PhoneNo;
  String PhoneNo_PATTERN ="[\\+]\\d{3}\\d{7}";
  
  2nd I make a if..else statement:
   {
                      Pattern pattern = Pattern.compile(PhoneNo_PATTERN);
                      Matcher matcher = pattern.matcher(PhoneNo);
                      if (!matcher.matches()) 
                      {
                      inputemergencyContactNo.setError("Please enter Emergency Contact No");
                      }
                      else{
                      Toast.makeText(RiderProfile.this, "Please filled in All field", Toast.LENGTH_SHORT).show();
                      }
  </code></pre>