Question: I am trying to validate my mobile number which I am picking up from **Contac List** but **the problem is that** it is picking contact like **+91 95 xx xxxxxx** and there is space between numbers so the validation is not happening.
For now I am using this validation

```
String Mobile = "^[+]?[01]?[- .]?(\\([2-]\\d{2}\\)|[2-9]\\d{2})[- .]?\\d{3}[- .]?\\d{4}$";

```

But it's a failure.
Any help is appreciable.
Thank you.

Answer: 
In android sdk One class is there PhoneNumberUtils by using that class you can validate your phone number:

check the documentation link [here](http://developer.android.com/reference/android/telephony/PhoneNumberUtils.html)
Just try this.

```
String number = " "   //Your mobile number
number.replaceAll("[^+\\d]|(?<=.)\\+", ""));

```

This will remove all the spaces, `(`, `)` symbols