title: regular expression check for closing tag XHTML
body: <p>The end of my expression is the only part causing me problems, im trying to match <code>&gt;</code> not <code>/&gt;</code></p>
  
  <p>something like this: <code>\s*[^\/]&gt;</code> however i dont want to match any other characters before the <code>&gt;</code></p>
  
  <p>Here is an example, I want this to match any img tags that are not closed.</p>
  
  <pre><code>&lt;img((\s+\w+(\s*=\s*(?:".*?"|'.*?'|[^'"&gt;\s]+))?)+\s*|\s*)\s*[^\/]&gt;
  </code></pre>