I want to differentiate between the following 2 html tags using php + regex expression. How do i go about doing it.\[code\]<a href="http://stackoverflow.com/"><img src="http://stackoverflow.com/nyp/slot/u100/style/homepage/logo.jpg" alt="" hspace="2"/>\[/code\]and\[code\]<a href="http://stackoverflow.com/"><img src="http://stackoverflow.com/nyp/slot/u100/style/homepage/logo.jpg" alt="" hspace="2" />\[/code\]Notice that the 2nd html img tab has a "space" before the closing.Appreciate any expert advice.