Live data from Hacker News

ReFiddle: Fiddle for Regexp testing

refiddle.com

41–43 of 43 posts

Re: ReFiddle: Fiddle for Regexp testing

#41
post #15

My entry into this category: http://regex.powertoy.org/ It makes use of a hidden Java applet -- so it supports the somewhat larger Java regex syntax, doesn't send your data anywhere else for matching, and can hook into the string-probing to animate the process. (Click the 'animate?' link to show the animation step/speed controls.) For example, you can watch the regex that tests whether a number is prime (by failing)…

I don't think its a deal breaker but if its a hidden java applet then why not have the regexes processed on the server as a servlet and sandbox them with a timeout?

That could work, but an original design goal was to avoid server dependencies or bottlenecks.

For instant display or the stepwise animation, the lag of a server roundtrip could be a problem; for some users, posting data to a remote service might introduce privacy concerns. (The regex-powertoy can be run completely locally.)

Re: ReFiddle: Fiddle for Regexp testing

#42
This regex creator is one I've used for ages; its a bit ugly but it generates the regex for Perl PHP Python Java Javascript ColdFusion C C++ Ruby VB VBScript J#.net C#.net C++.net VB.net. You type an example (or the actual) string you plan to search over, click submit and it generates a weird chart that you can use to select which bits you want your regex to find. Really advise giving it ago; no regex knowledge required and more importantly.. fast.
Post reply on HN