Live data from Hacker News

ReFiddle: Fiddle for Regexp testing

refiddle.com

11–20 of 43 posts

Re: ReFiddle: Fiddle for Regexp testing

#11
post #9

I'll go ahead and recommend RegexBuddy ( http://www.regexbuddy.com/ ) as another useful tool for testing regexes. (No affiliation, this just happens to be one of the most useful programs I've bought with my own money.)

I was gonna recommend this as well, then I saw your comment, and then I saw your username, and then it got really weird.

Re: ReFiddle: Fiddle for Regexp testing

#12
post #9

I'll go ahead and recommend RegexBuddy ( http://www.regexbuddy.com/ ) as another useful tool for testing regexes. (No affiliation, this just happens to be one of the most useful programs I've bought with my own money.)

RegexBuddy is fantastic, I bought it ages ago and lost my license key thing. Also it's Windows only (boo!).

Re: ReFiddle: Fiddle for Regexp testing

#14
If you are looking for a command line regexp builder I highly recommend txt2regex. It is a giant bash script so it runs anywhere bash does and supports:

  a) +awk                                m) +mysql 
  b) +ed                                 n) +ooo 
  c) +egrep                              o) +perl 
  d) +emacs                              p) +php 
  e) +expect                             q) +postgres 
  f) +find                               r) +procmail 
  g) +gawk                               s) +python 
  h) +grep                               t) +sed 
  i) +javascript                         u) +tcl 
  j) +lex                                v) +vbscript 
  k) +lisp                               w) +vi 
  l) +mawk                               x) +vim 

http://aurelio.net/txt2regex/

Re: ReFiddle: Fiddle for Regexp testing

#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) or composite (by succeeding) via these two animations:

49: http://regex.powertoy.org/?pat=/^1%3F%24|^%2811+%3F%29\1+%24...

47: http://regex.powertoy.org/?pat=/^1%3F%24|^%2811+%3F%29\1+%24...

Is the applet requirement a deal-breaker for casual use? I might be able to feed the OpenJDK 7 regex classes through the Google Java->JS cross-compiler to get a pure-JS solution with the same syntax/animation capabilities.

Re: ReFiddle: Fiddle for Regexp testing

#17
post #9

I'll go ahead and recommend RegexBuddy ( http://www.regexbuddy.com/ ) as another useful tool for testing regexes. (No affiliation, this just happens to be one of the most useful programs I've bought with my own money.)

I was gonna recommend this as well, then I saw your comment, and then I saw your username, and then it got really weird .

Don't you hate it when you make a comment through an old HN account and then completely forget about it and post through your normal HN account a quarter of an hour later?

Re: ReFiddle: Fiddle for Regexp testing

#18
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?

Re: ReFiddle: Fiddle for Regexp testing

#19
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)…

well. for some it is because they don't run java (e.g. me) but for the large population it will not matter.

Re: ReFiddle: Fiddle for Regexp testing

#20
post #9

I'll go ahead and recommend RegexBuddy ( http://www.regexbuddy.com/ ) as another useful tool for testing regexes. (No affiliation, this just happens to be one of the most useful programs I've bought with my own money.)

One of the few Windows apps I miss. Fantastic software.
Post reply on HN