Rubular Regexp Tester/Editor

January 17th, 2009  |  Published in ruby  |  1 Comment

Rubular is a handy tool for figuring out Ruby regexps. You type in your regexp in the top field, include your options in a second field, then enter a test string. It shows the match results dynamically as you enter or edit the regexp or test string.

You can get that far with the free (as in GPL’d, pedants) Reggy on the Mac. Rubular also offers the ability to create permalinks of a regexp. Nice if you’re the type to periodically help others out with regexps, since e-mail is suboptimal for more elaborate examples.

It also claims to save them to your clipboard, but that’s a bit of functionality that didn’t work for me. Didn’t feel like digging into it, so I don’t know if it’s because I haven’t recently told Firefox to let me do that or if the site is using a Flash-based copy-to-clipboard hack that’s been caught up in the furor over everybody figuring out that it might be bad to let Flash just write stuff to your clipboard.

Either way, nice reference.

Responses

  1. JS Regexp Tester says:

    March 11th, 2009 at 1:49 am (#)

    Useful. Thanks! Add this one,

    http://www.pagecolumn.com/tool/regtest.htm

Leave a Response

© Michael Hall, licensed under a Creative Commons Attribution-ShareAlike 3.0 United States license.