在不同语言语法之间转换正则表达式的工具? [英] Tool to convert regex between different language syntaxes?

查看:129
本文介绍了在不同语言语法之间转换正则表达式的工具?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有工具将正则表达式从一种流行语言的语法转换为另一种?例如,Python风格的正则表达式是Java风格的正则表达式吗?

Is there a tool to convert a regex from one popular language's syntax to another? For example a Python-style regex to a Java-style regex?.

或者至少,是否有人将一组规则放在一起进行这些转换?

Or at least, has someone put together a set of rules to do these conversions?

显然有些构造将无法转换。

And obviously some constructs won't be able to convert.

推荐答案

Go要这篇文章,请点击正则表达式信息对正则表达式的比较的链接,这让我找到了一个名为 RegexBuddy 的工具,听起来它可能会做你想要的。

Go to this article, and follow the link to "Regex info's comparison of Regex flavors", that got me to a tool called RegexBuddy, which sounds like it might do what you want.

这篇关于在不同语言语法之间转换正则表达式的工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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