Live data from Hacker News

RegExr: Learn, Build and Test Regex

regexr.com

41–50 of 52 posts

Re: RegExr: Learn, Build and Test Regex

#41

Regex seems like a good use case for GPT3. Most people that I've seen use regex use it so rarely that they end up having to relearn the syntax each time they use it.

There are some regex AI tools already - e.g. https://devblogs.microsoft.com/powershell/convertfrom-string...

It's what excel uses for power query's "column from examples" too.

Re: RegExr: Learn, Build and Test Regex

#43
post #15

Rubular: a Ruby regular expression editor ( https://rubular.com/r/mP6IRzteSm ) is another option which is pretty minimal but useful.

I love Rubular and use it often. The "Regex Quick Reference" block is so incredibly useful too when you don't completely remember that one thing.

However it is closed source, and it sends your info to the server for processing. This is of course not (likely) nefarious, but it does give me a little pause, and means that you should never use it if the data you are putting into it is sensitive!. For example, don't test your API key parsing regex on it with real/active keys! Also for corporate dev you are (probably) violating company policy by using it.

Rubulex[1] is a neat open source clone that I use a lot. The only downside is I have to start it locally. One of these days I'll stand up a permanent instance, though I don't want to do that without auditing the code and I simply haven't had time to do that. If anyone has done so I'd love to hear about it. Scriptular[2] is an open source clone that uses javascript:

Side note: If anyone knows of or wants to build an Elixir regex tool in Phoenix/LiveView, I'd be willing to collaborate a bit and willing to host/maintain (and I'll pay for the VM/domain). I've already got some Phoenix apps running in prod so if you get it to work with `mix phx.server` I can take it from there (I know that operationalizing and devops isn't what usually interests most people). A non LiveView version would be cool too, but it seems like such a cool project to build with LiveView to be super responsive and show off what you can do (and also learn Elixir/Phoenix/LiveView with a simple app). Would be really neat to release an elixir-desktop[3] version too! My email is in my profile if you are interested.

[1]: https://github.com/ofeldt/rubulex

[2]: https://github.com/jonmagic/scriptular

[3]: https://github.com/elixir-desktop/desktop

Re: RegExr: Learn, Build and Test Regex

#44
Regexr was great. It's a shame development has stalled. I've started using regex101 instead, mostly because of support for more than javascript and php. There is plenty of opportunity to add some additional languages through webassembly but sadly I don't think this is gonna happen.

Re: RegExr: Learn, Build and Test Regex

#45
post #33
post #3

I (and most people I talk to about this stuff) tend to use Regex101 ( https://regex101.com ) for this purpose. It will be interesting to spend some time with RegExr and compare the two tools. I am also aware of RegexBuddy ( https://www.regular-expressions.info/regexbuddy.html ), whose author also publishes very good regex learning content on their site. It looks great, but it's a closed-source Windows-only applicatio…

RegexBuddy works perfectly on wine: https://www.regexbuddy.com/wine.html Why does it matter if it's closed source? I am a paying customer of RegexBuddy. Best $39 I've ever spent on software. RegexBuddy's `debug` feature has no equal in open-source or commercial software: https://www.regexbuddy.com/debug.html It has many more features than regex101 AND it keeps all data local. Maybe regex101 keeps things locally too,…

I bought my copy of RegexBuddy in 2008. I should probably upgrade as well, if only to support the developer.

For me it's definitely been one of those "best money spent ever" tools as well.

Re: RegExr: Learn, Build and Test Regex

#46
post #13

I switch between this site and debuggex.com depending on what I’m doing at the time. I find they both have their strengths for specific tasks.

What's the diff? I love regexr and credit that site to my finally understanding regex. In fact, I was just on it this morning!

debuggex makes really nice railroad diagrams.

Re: RegExr: Learn, Build and Test Regex

#47

Last time a regex conversation came up on HN someone turned me on to https://regexcrossword.com - which is good fun if you're someone who enjoys regex :)

I’ve thought for a while that regex could make for a good competition. Given an input, write a regex that will get some output. Multiple competitors get the same test, first one to produce the output wins. In a tie, shortest regex wins :)

Would make for an entertaining show as the various malformed regexii produce partially correct outputs.

Re: RegExr: Learn, Build and Test Regex

#48

I'd like a tool similar to this but for sed or awk usage. Like to see interactively what would be the output for given input and command. Particularly for the toolchain distributed with Ubuntu. I believe demand for such tool would be greater than just me. Let me know if you know one!

How about this one? https://awk.js.org/

Re: RegExr: Learn, Build and Test Regex

#49

I'd like a tool similar to this but for sed or awk usage. Like to see interactively what would be the output for given input and command. Particularly for the toolchain distributed with Ubuntu. I believe demand for such tool would be greater than just me. Let me know if you know one!

Ultimate Plumber https://github.com/akavel/up

HN discussion: https://news.ycombinator.com/item?id=26644110

Re: RegExr: Learn, Build and Test Regex

#50
post #5

RegExr is my go to tool for testing regex. It’s always been able to solve my needs and I’ve never had any need to change. In saying that, I’ve always wondered if regexr is missing out on something that other regex build/test tools have? What other regex tools do people use and why?

I typically use Regex101. It's been good enough for my needs and I'm just used to it at this point. Looking at RegExr, it seems like the only big difference is that Regex101 supports substitution, though I think I've only used it once. https://regex101.com/

[deleted]
Post reply on HN