熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> .NET編程 >> 正文

正則表達式生成超級工具The Regulator

2022-06-13   來源: .NET編程 

  The-Regulator
        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!


From:http://tw.wingwit.com/Article/program/net/201311/13327.html
    Copyright © 2005-2022 電腦知識網 Computer Knowledge   All rights reserved.