I am a marketer I am making some regex to scrape phone number using a tool. I have the following regex which scrape phone number of XXX-XXX-XXXX format perfectly. Here the issue is the page having numbers in more than 6 different lines but I want to scrape only if the line contains <span no="telephone">
((\(\d{3}\) ?)|(\d{3}-))?\d{3}-\d{4}
I have tried getting the phone number between the strings some how because of source code of that page that way is not working properly I just want to give a try with the new way.
My page source is always like
<a href="/phone/xxx-xxx-xxxx" data-toggle="tooltip" data-title="Mobile" >
<span itemprop="telephone">xxx-xxx-xxxx</span>
How I can achieve this. Really appreciate your help. Make sure I have scrape after the tags <span itemprop="telephone">