capturing number from html text
<p>i want to capture phone numbers from an html document. I have used a pattern but its also selecting numbers that are the part of attributes of tags.</p>

<pre><code>var myArray = $('body').html().match(/([\s()-.])*(0[1-9]|[+][1-9]|[+][+][1-9]|00[1-9])(([\s()-.\/])*[0-9]+)*/g);
</code></pre>
