19

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.

guidoism
  • 7,820
  • 8
  • 41
  • 59

2 Answers2

7

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.

Community
  • 1
  • 1
John Gaines Jr.
  • 11,174
  • 1
  • 25
  • 25
6

Yes there is a Windows tool that will do this: RegexBuddy

ridgerunner
  • 33,777
  • 5
  • 57
  • 69