Can you help me write two rules that check phoneNumber?
First rule: start with +7 or 8 then any ten numbers.
Examples:
+77017223457 - valid
77017223457 -not valid
87017223457 - valid
Second rule: start with +7 or 8 then three numbers from set:
{700, 701, 702, 705, 707, 712, 713, 717, 718,721, 725, 726, 727, 777 } then any seven numbers.
Examples:
+77074446255 - valid
+77034446255 - not valid (no 703 in the set)
Thanks.