Russian phone number has 11 digits, but i couldn't use a{11}, because phone number can contain brackets and dashes
My regex: ^([\+]?\d){1,2}([\(\-]*[0-9]{3}[\)\-]*)([0-9\-]{7,9})$
Number can have from 1 to 2 characters as a country code
then 3 digits with brackets or not as phone operator code
then from 7-9 digits with dashes or not
For example:
+7(994)849-45-16
+7(994)849-4516
+7(994)84945-16
+7994849-45-16
Question is, how i can count lenght of only digits in regex