开发者

Find tags doesn’t contain specific attribute (specific word) using grep

开发者 https://www.devze.com 2022-12-19 09:53 出处:网络
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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消