title: php preg_match_all() not working as expected
body: <p>In the example string below I have 5 times <strong>#A#</strong> and 11 times <strong>#B#</strong>   but preg_match_all returns only one match for <strong>#A#</strong> and 0 matches for <strong>#B#</strong>. Any idea how to solve this ?</p>
  
  <pre><code>$string = '&lt;div&gt;#Α#&lt;/div&gt;&lt;div i=""&gt;#Α#&lt;/div&gt;&lt;div i=""&gt;&lt;a href="#Β#" class="" s="" p="65" t="4"&gt;&lt;/a&gt;&lt;a href="#Β#" class="" s="" p="65" t="4"&gt;&lt;/a&gt;&lt;a href="#Β#" class="" s="" p="68" t="4"&gt;&lt;/a&gt;&lt;a href="#Β#" class="" s=""&gt;&lt;/a&gt;&lt;a href="#Β#" class="" s="" p="75" t="2"&gt;&lt;/a&gt;&lt;a href="#Β#" class="" s=""&gt;&lt;/a&gt;&lt;a href="#Β#" class="" s="" p="65" t="3"&gt;&lt;/a&gt;&lt;a href="#Β#" class="" s="" p="60" t="4"&gt;&lt;/a&gt;&lt;a href="#Β#" class="" s=""&gt;&lt;/a&gt;&lt;a href="#Β#" class="" s="" p="60" t="4"&gt;&lt;/a&gt;&lt;a href="#Β#" class="" s="sv_plus" p="75" t="3"&gt;&lt;/a&gt;&lt;noscript&gt;&lt;center&gt;&lt;h1 style="color:red;font-size:50px"&gt;#A#&lt;/h1&gt;&lt;/center&gt;&lt;div&gt;#Α#&lt;/div&gt;&lt;/noscript&gt;&lt;div&gt;#Α#&lt;/div&gt;';
  
  preg_match_all("/\#A\#/",$string,$matches);
  print_r($matches); //return only one match instead 5
  
  preg_match_all("/\#B\#/",$string,$matches);
  print_r($matches); //return zero matches instead 11
  </code></pre>