I have six html tags I care about checking if the self closing tag is incorrectly done. The tags are: <input/><br/><hr/><img/><link/><meta/>
. I'm also looking for it to not have a space before the end tag because the page is xhtml. Basically I want to find ones that DON'T have self closing or if it does there is a space in front of it.
Right now I'm just focusing on one of the tags (input). It picks up some but not all. For instance, it picks up <input type='submit' value='Save'>
which it is supposed to do. But it doesn't pick up <input type="text" name="name" id="name"/>
. It also picks up correct self closing tags like <input type='submit' value='Save' /></td></tr>
My grep is:
grep "<input(.*[^/])>." *
Any ideas why?