3zzy 3zzy - 1 year ago 129
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

Answer Source

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>.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download