title: Escping quotes in PHP regex
body: <p>How can I find only the telephone number (1234827382) in the following string ($x)?</p>
  <p><strong><strong>IMPORTANT:</strong> I used <code>htmlspecialchars()</code> function on <code>$x</code> (text). Without useing this function the regex works. I need to find a regex solution when I use <code>htmlspecialchars()</code> before regex.</strong></p>
  <pre><code> font-size: 14px; color: #333;&quot; &gt;asd:&lt;/td&gt; &lt;td width=&quot;150&quot; align=&quot;left&quot; valign=&quot;top&quot;
      bgcolor=&quot;#f5f5f5&quot; style=&quot;padding: 6px; border: 1px solid
      #eaeaea;font-family: Arial, Helvetica, sans-serif; font-size: 14px; color:
      #333;&quot; &gt;Tel:&lt;/td&gt; &lt;td align=&quot;left&quot; valign=&quot;top&quot; style=&quot;padding: 6px;
      border: 1px solid #eaeaea;font-family: Arial, Helvetica, sans-serif;
      font-size: 14px; color: #333;&quot; &gt;&lt;a href=&quot;tel:1234827382&quot;&gt;1234827382&lt;/a&gt;&lt;/td&gt; &lt;/tr&gt;
  &lt;tr&gt; &lt;td width=&quot;150&quot; align=&quot;left&quot;
  </code></pre>
  <p>I have tried:</p>
  <pre><code>$p = '/href=&quot;tel:12.{20}/';
  preg_match_all($p, $x, $matchestel);
  print_r($matchestel);
  </code></pre>
  <p>If I try escape with \ then it also dont work:</p>
  <pre><code>$p = '/href=\&quot;tel:12.{20}/';
  </code></pre>
  <p>If the text doesnt contain quote: &lt;a href=tel:1234827382&quot; (instead of this: &lt;a href=&quot;tel:1234827382&quot; )
  then it finds, and after that I could remove the href&quot; from the beginning. I know it is not the best solution.
  I think the problem is that I need to escape the &quot; from pattern.</p>