The Regulator窗口主要分为六部分Web SearchRegex AnalyzerSnippetsControl表达式输入区Match结果区待解析文本区比较重要的是Regex Analyzer表达式输入区Match结果区待解析文本区在默认情况下Web Search区占了很大位置可能需要调整一下 基本用法在表达式输入区待解析文本区 输入你心目中的表达式和待解析文本然后点菜单栏中的Match结果会显示在Match结果区 如果你想弄清楚一个正则表达式的意思可以利用Regex Analyzer(在View菜单)不过该功能有时候无法解析出结果此时可以把表达式输入区 或者待解析文本区 中的内容稍微改一下(比如添加一个空格)或许就可以解析出正确的结果了比如我输入 \d{}\d{} 会解析出 Any digit Exactly times Any digit Exactly times 可以帮助我们理解一个复杂的正则表达式 其他有用的功能生成代码(C# or VBNET)直接编译成DLL从网站检索现成的正则表达式 (Web Search)保存常用的表达式(SnippetsControl)等等 说到正则表达式还有一个工具很有名气Expresso这个工具在codeproject上有详细介绍出品时间也比The Regulator早The Regulator的作者也受到了Expresso 的影响才开发的The Regulator他在The Regulator的帮助文件中说The Original idea for The Regulator came from a simple Regex Tester called Expresso It was simple and easy to use (to a certain degree) but it mainly prompted the idea in me that I could build something similar with features that I wished I had So thanks Expresso Couldn′t have done this one without ya! |