Find tags doesn’t contain specific attribute (specific word) using grep
How to find all server-side tags (<asp:
) that doesn't contains attribute runat
in my Visual Studio开发者_运维问答 2008 / MonoDevelop solution using grep?
The regex would be: <asp:((?!\brunat\s*=)[^>])*>
. Note that if some attribute value contains "runat=", this won't match.
grep -lr "<asp:*" is the command you are looking for I think
精彩评论