开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜