Looking for reg.expression Ros.phone in the text of the groups VK
/((8|\+7)[\- ]?)?(\(?\d{3,5}\)?[\- ]?)[\d\- ]{5,10}/ui He always finds phones, but sometimes the first value is broken through digits from the link to users https://vk.com/id453338121 , which may be in the text. Tell me, how to exclude such moments?
/^((8|\+)[\- ]?)?(\(?\d{3}\)?[\- ]?)?[\d\- ]{7,10}$/i, I still use it. It seems not to fail - Dantessss^search began to work as it should. I apologize - Sarkis Allahverdian