The end of my expression is the only part causing me problems, im trying to match >
not />
something like this: \s*[^\/]>
however i dont want to match any other characters before the >
Here is an example, I want this to match any img tags that are not closed.
<img((\s+\w+(\s*=\s*(?:".*?"|'.*?'|[^'">\s]+))?)+\s*|\s*)\s*[^\/]>