Ive been going through the regular expression things and consider we have an array which has html tags stored in as strings..
like `array=["</div>,"</a>", "<div id='test'>", "<a href='http://test/new.html'>", "</a>", "</div>", "<span style='color:#ffffff;'>"]`

if we go through the array one by one,

if we want to detect complete tags and incomplete tags, like for example,`<div>` is openened and `</div>` its closed in location after that.. so those two comes under complete tags... `<span>` is opened, but never closed, so it comes under incomplete open tags, `</div>` at first location is closed, so it comes under incomplete closed tags.

Can this be done using JavaScript?