Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想_0在环境中的代码中找到所有VS 2012内容,但不在评论中:(
_0
VS 2012
有没有办法删除所有评论?(当然只是为了搜索和查找_0)
如果您很高兴仅在单行注释中不匹配,则可以使用带有否定后视的正则表达式:
(?<!//.*)_0
也就是说,它匹配任何出现的_0,前提是它//之前没有 a (后跟任意数量的字符)。
//