3zzy 3zzy - 9 months ago 96
CSS Question

Match only a specific tag

I need to find only the empty

tags which may or may not have attributes.

This matches
but also


How do I match only


You can just change the last part of regex to </i> right. This way it will not end up selecting input and img


EDIT: Version to catch and include any whitespace between the i tags:


Will catch <i> </i>.