使用正则表达式在vb文件中查找 [英] Use Regex to find in vb file

查看:85
本文介绍了使用正则表达式在vb文件中查找的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想找到包含在vb文件中的任何单词,除了注释代码

示例:

I want to find any word contain in vb file, except comment code
Example:

' GetType(System.String))
 MyGetType(System.String))
 MyGetType_String(System.String))
" 'GetType(System.Int))'"



*结果:


* Result:

MyGetType(System.String))
 MyGetType_String(System.String))
" 'GetType(System.Int))'"





你做什么样的正则表达式?



What do you do pattern of Regex?

推荐答案

你知道Visual的功能吗? Studio,甚至可以在Express版本中使用?

如果您的字符串是变量名称,请单击它,然后转到d efinition。然后你可以搜索所有引用。

确实,VS的常见文本搜索也会显示在评论中找到的文本。
Do you know the capabilities of Visual Studio, even available in the Express versions?
If your string is a variable name, click on it, and "Go to definition". Then you can "search for all references".
It's true that the "common" text search of VS will show you the text found in in comments also.


这篇关于使用正则表达式在vb文件中查找的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆