测试正则表达式工具(Linux/ubuntu)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4022089/
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-04 23:47:13  来源:igfitidea点击:

Testing regular expressions tool (Linux/ubuntu)

regexlinux

提问by hummingBird

I searched for a question about regexp testing/learning tools, but people usually suggest Windows based solution. I found one for ubuntu: redit. However, I'm wondering if there are better tools for the job. So, without further ado

我搜索了一个关于正则表达式测试/学习工具的问题,但人们通常建议基于 Windows 的解决方案。我为 ubuntu 找到了一个:redit。但是,我想知道是否有更好的工具来完成这项工作。所以,事不宜迟

Q: What is the best tool for testing/leadning regular expressions
   for linux/ubuntu?

Sorry if this is a superuser kind of question. Thx

对不起,如果这是一个超级用户类型的问题。谢谢

采纳答案by sleske

I rather like Kodos, which is a cross-platform GUI regex tester.

我更喜欢Kodos,它是一个跨平台的 GUI 正则表达式测试器。

But there are many others. Have a look at the answers to How do you debug a regex?, there are many cross-platform solutions listed.

但是还有很多其他的。查看如何调试正则表达式的答案,列出了许多跨平台解决方案。

回答by pinichi

Why don't use web-base tools: http://regexpal.com/and more here

为什么不使用基于网络的工具:http: //regexpal.com/和更多这里

回答by ridgerunner

Best "tool" for learning regex?

学习正则表达式的最佳“工具”?

Easy: Mastering Regular Expressions (3rd Edition)

简单:掌握正则表达式(第 3 版)

回答by Heinrich

For simple regex I use the replace function in Sublime Text 2.

对于简单的正则表达式,我使用Sublime Text 2 中的替换功能。

回答by arivu86

My favorite http://gskinner.com/RegExr/Adobe Air app. Worth a try

我最喜欢的http://gskinner.com/RegExr/Adobe Air 应用程序。值得一试