title: Regex - Match everything except HTML tags
body: <p>I've searched for this but couldn't find a solution that worked for me.
  I need regex pattern that will match all text except html tags, so I can make it cyrilic (which would obviously ruin the entire html =))</p>
  
  <p>So, for example:</p>
  
  <pre><code>&lt;p&gt;text1&lt;/p&gt;
  &lt;p&gt;text2 &lt;span class="theClass"&gt;text3&lt;/span&gt;&lt;/p&gt;
  </code></pre>
  
  <p>I need to match text1, text2, and text3, so something like</p>
  
  <pre><code>preg_match_all("/pattern/", $text, $matches)
  </code></pre>
  
  <p>and then I would just iterate over the matches, or if it can be done with preg_replace, to replace text1/2/3, with textA/B/C, that would be even better.</p>