如何使用多个 RE 引擎测试正则表达式? [英] How can test I regular expressions using multiple RE engines?
本文介绍了如何使用多个 RE 引擎测试正则表达式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何针对不同的正则表达式引擎测试相同的正则表达式?
How can I test the same regex against different regular expression engines?
推荐答案
迄今为止最强大的免费在线正则表达式测试工具是 http://regex101.com/ - 让您选择 RE 引擎(PCRE、JavaScript、Python)、有一个调试器、为匹配着色、动态解释正则表达式、可以创建到正则表达式操场的永久链接.
The most powerful free online regexp testing tool is by far http://regex101.com/ - lets you select the RE engine (PCRE, JavaScript, Python), has a debugger, colorizes the matches, explains the regexp on the fly, can create permalinks to the regex playground.
其他在线工具:
- http://www.rexv.org/ - 支持 PHP 和 Perl PCRE、Posix、Python、JavaScript 和 Node.js
- http://refiddle.com/ - 受 jsfiddle 启发,但用于正则表达式.支持 JavaScript、Ruby 和 .NET 表达式.
- http://regexpal.com/ - 由 XRegExp JavaScript 库
- http://www.rubular.com/ - 基于 Ruby
- Perl Regex Tutor - 使用 PCRE
- http://www.rexv.org/ - supports PHP and Perl PCRE, Posix, Python, JavaScript, and Node.js
- http://refiddle.com/ - Inspired by jsfiddle, but for regular expressions. Supports JavaScript, Ruby and .NET expressions.
- http://regexpal.com/ - powered by the XRegExp JavaScript library
- http://www.rubular.com/ - Ruby-based
- Perl Regex Tutor - uses PCRE
Windows 桌面工具:
Windows desktop tools:
- The Regex Coach - 免费的 Windows 应用程序
- RegexBuddy 大多数人推荐,费用为 39.95 美元
- The Regex Coach - free Windows application
- RegexBuddy recommended by most, costs US$ 39.95
Jeff Atwood [写过关于正则表达式的文章](帖子:).
Jeff Atwood [wrote about regular expressions]( post:).
SO 用户推荐的其他工具包括:
Other tools recommended by SO users include:
- http://www.txt2re.com/ 生成多语言正则表达式的在线免费工具 (@palmsey 另一个线程)
- 添加的字节正则表达式备忘单(@GateKiller 另一个线程)
- http://regexhero.net/ - 在线 .NET 正则表达式测试器.不是免费的.
- http://www.txt2re.com/ Online free tool to generate regular expressions for multiple language (@palmsey another thread)
- The Added Bytes Regular Expressions Cheat Sheet (@GateKiller another thread)
- http://regexhero.net/ - The Online .NET Regular Expression Tester. Not free.
这篇关于如何使用多个 RE 引擎测试正则表达式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文