C# 正则表达式查询生成器

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1991264/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-06 22:28:42  来源:igfitidea点击:

Regex Query Builder

c#regex

提问by Mark Pearl

I am a C# developer, I have been looking at regular expressions (regex) and wanted to know if anyone knows about useful tools for building regular expressions - like a regex query builder?

我是一名 C# 开发人员,我一直在研究正则表达式 (regex),想知道是否有人知道构建正则表达式的有用工具——比如正则表达式查询构建器?

回答by John Parker

Also worthy of mention are Regex Buddyand Regex Magic- the latter being ideal if you really want to hide from the pain. :-)

同样值得一提的是Regex BuddyRegex Magic——如果你真的想躲避痛苦,后者是理想的选择。:-)

回答by slugster

Check regexlib.comif you want an online option.

如果您需要在线选项,请查看regexlib.com

回答by Alex

I think, greatest regex editor is gskinner. It provides a lot of extremely useful options. At least for my cases.

我认为,最好的正则表达式编辑器是gskinner。它提供了许多非常有用的选项。至少对于我的情况。

Also it has dictionary about majority of regex expressions and has beatiful tips, when the pointer is hovering above the snippet of your regex.

当指针悬停在正则表达式的片段上方时,它还有关于大多数正则表达式的字典和漂亮的提示。

I found it the most appropriate regex editor.

我发现它是最合适的正则表达式编辑器。

回答by jbochi

And there is also the "headache relief for programmers :: regular expression generator", http://txt2re.com/

还有“让程序员头疼的:正则表达式生成器”,http://txt2re.com/

回答by Noufal Ibrahim

Emacs has an re-builder that's quite useful (if you're an Emacs user).

Emacs 有一个非常有用的重建器(如果您是 Emacs 用户)。

回答by Christian Madsen

A good online tester that I regularly use is Derek Slagers: link. It doesn't have fancy highlighting and other features, but it does help a lot with developing/testing.

我经常使用的一个很好的在线测试仪是 Derek Slagers:链接。它没有花哨的突出显示和其他功能,但它对开发/测试有很大帮助。

回答by Lawrence Barsanti

RegexHelperis a Notepad++plugin that lets you test regular expressions against open documents.

RegexHelper是一个Notepad++插件,可让您针对打开的文档测试正则表达式。

回答by Paul Alexander

http://refiddle.comlets you build and test regular expressions using a red => green TDD style development right in your browser. Has runners for JavaScript, .NET and Ruby.

http://refiddle.com允许您在浏览器中使用红色 => 绿色 TDD 样式开发来构建和测试正则表达式。有 JavaScript、.NET 和 Ruby 的运行器。