如何使用多个 RE 引擎测试正则表达式? [英] How can test I regular expressions using multiple RE engines?

查看:86
本文介绍了如何使用多个 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/ - 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 - 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/ 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆