i am using this regex(^((?:\+49 |\+89)?\s*(?:\( ([89|49])\d+\)\s*(?:[\/–-]\s*)?)?\d+(?:\s *(?:[\s\/–-]\s*)(?!44{1,2}) \d+)*)$) it is working fine but i have one query.
suppose if the number does not allow using this regex(?!44) .If we allow the number what we have to use.
youre making it unnecessarily complicated with this RegExp. there is no need to regard spaces, parentheses, hyphens, dots, and whatnot in a number validation.
Thanks Dormilich, for supporting and much appreciated. if the number having like 00 44 161 1234567.this number has 00 44 has uk code right, this one i have to restrict.
Comment