title: Regex find specific tags for replace in a string
body: <p>I have a string with some codes (ex:«USER_ID#USERNAME#STATUS»)  for replacement like in this example:</p>
  
  <blockquote>
    <p>Hello «USER_ID#USERNAME#STATUS», do you like «PROD_ID#PRODNAME#STATUS»?</p>
  </blockquote>
  
  <p>I need to find a way to get all the codes for future replacement. </p>
  
  <p>I can easily find one code with this regex: </p>
  
  <pre><code>/«(.*)#(.*)#(.*)»/ 
  </code></pre>
  
  <p>but can't find a way to get all the codes with preg_match_all.</p>
  
  <p>Can someone help me? I'm using PHP.</p>
  
  <p>Thanks</p>