title: Regular expression for finding html tags
body: <p>I'm trying to write a function, which will find each substring in string, where substring is some html tag, for example</p>
  <p><code>&lt;li&gt;</code></p>
  <p>But my regular expression don't work and i can't finde my mistake.</p>
  <pre><code>    $str = 'hello brbrbr &lt;li&gt; hello&lt;/li&gt; &lt;li&gt;how are you?&lt;/li&gt;';
      $items = preg_match_all('/(&lt;li&gt;\w+&lt;\/li&gt;)', $str, $matches);
  </code></pre>
  <p>$items must be an array of the desired substrings</p>