Regex for phone numbers, allowing mandatory 10 digits and `+`, `()`, space characters

regex

Solution

Try `^[ ()+]*([0-9][ ()+]*){10}$`

This will match exactly 10 digits with any number of ``,`(`,`)`,`+` characters any where else in the input.

Problem

Searching a regex for phone numbers, allowing mandatory 10 digits and +, (), space characters, I tried below code but it's not working: ``` "^[0-9]{10,10}[' '+()]$" ```

Original source