News for hackers. Stuff that matters.
Re:Show HN: JavaScript regex tester for macOS by obihill on Saturday June 10, 2017 @11:43PM (#14530497)
I use regex101.com, which has a really great explanation feature, but it's not really built for 'search and replace'. You might want to take a look at it and see how you match up against it.
Re:Show HN: JavaScript regex tester for macOS by btown on Sunday June 11, 2017 @12:11AM (#14530585)
Highly recommend regex101 to anyone reading this. Multiple language support, colored highlights based on which group matched, a full-fledged debugger that steps through every character tested, and substitution with group references. That said, OP's solution has a much simpler interface, and if you like that kind of thing for focus, it seems like it's a great little app!
Re:Show HN: JavaScript regex tester for macOS by obihill on Monday June 12, 2017 @10:23AM (#14537598)
This has a simpler interface, yes. But, it took me a while to get comfortable with regular expressions, so the explanations of what was going on was like a built-in tutor, and apps like this definitely need this to be useful to learners.
Re:Show HN: JavaScript regex tester for macOS by harrygeez on Sunday June 11, 2017 @12:19AM (#14530612)
Another vote for regex101. For those who didn't know it even runs offline ;)
Re:Show HN: JavaScript regex tester for macOS by ridiculous_fish on Sunday June 11, 2017 @05:05AM (#14531296)
What engine does regex101 use for JavaScript regexps? It seems to get all of the tricky cases right.
Re:Show HN: JavaScript regex tester for macOS by helb on Monday June 12, 2017 @08:08AM (#14536604)
From their FAQ:

For JavaScript, regex101 uses the browser's regex engine, so you may see different results on different browsers for the same test case.

FAQ link: https://github.com/firasdib/Regex101/wiki/FAQ#how-close-does...

This is the actual service worker for JS regexps: https://gist.github.com/helb/6c9edb53d73489f85390f82826c2b08...

Re:Show HN: JavaScript regex tester for macOS by mranon99 on Sunday June 11, 2017 @08:13PM (#14534519)
If you're not using regex101.com you are still living in the stone ages.
Re:Show HN: JavaScript regex tester for macOS by tuxracer on Sunday June 11, 2017 @12:20AM (#14530616)
Great design! This would make a really awesome PWA vs electron only. Let me know if you'd like any help with that
Re:Show HN: JavaScript regex tester for macOS by ud0 on Sunday June 11, 2017 @05:28AM (#14531331)
Awesome design, I just started learning regex deeply so this is serendipity :)
Re:Show HN: JavaScript regex tester for macOS by masonicb00m on Sunday June 11, 2017 @10:51AM (#14532138)
Thanks! If you see anything that could be improved, please LMK
Re:Show HN: JavaScript regex tester for macOS by mrmondo on Saturday June 10, 2017 @06:42PM (#14529613)
"It's free - what are you waiting for..." seems kind of, creepy?

Also, what's the value in having this in JavaScript?

Re:Show HN: JavaScript regex tester for macOS by masonicb00m on Saturday June 10, 2017 @07:18PM (#14529760)
The "JavaScript" qualifier is just to let you know what flavor of regex it expects.
Re:Show HN: JavaScript regex tester for macOS by masonicb00m on Saturday June 10, 2017 @07:19PM (#14529763)
Thanks for the feedback :)