Anyone want to recommend a 开发者_如何学运维good regex tool (Interactive GUI for constructing and learning) for regex syntax on Mac OS X?
I can recommend Patterns, found on Mac App Store: http://itunes.apple.com/us/app/patterns-the-regex-app/id429449079?mt=12
http://rubular.com. It's on the Internet, so you should be able to use it on OS X. It uses Ruby's regexp engine, but that is similar enough to Perl and other regexp engines.
While I don't know of any native OS X "interactive" regex tools, here are a couple of good visual regex match tools:
- Reggy (screenshot)
- Reginald (screenshot)
A few online editors:
- RegexPal
- MyRegexp
And if you're willing to run windows in a virtual machine, there's also the Regex overlord:
- RegexBuddy
I like regexhibit, there are some others here:
http://alternativeto.net/software/regexhibit/?platform=mac
Or if as others have said you don't mind running a VM I think regex coach for Windows is a little better:
http://weitz.de/regex-coach/
There are two that I can think of, both rely on PyQt, the eric ide, this is a nice python ide, it is specialized for PyQt but has a regex tool built into it. The other is kodos which is a standalone regex tool.
A self-plug:
http://motionobj.com/regex
You can also read the tutorial here http://motionobj.com/blog/regex-macos-tutorial. Although it mentions the Regex app, it should still be helpful with other tools.
Take a look at iRegEx.
精彩评论