Live data from Hacker News

RegExr

regexr.com

31–40 of 57 posts

Re: RegExr

#31
post #19

I find RegEx's a bit cryptic. Sure, with enough practice one can read them, but I'd like an alternative that can easily break out chunks as named units. One can then reference the named units to compose new named units. Divide-and-Conquer. I'd like to see experiments in alternatives that provide this. It could help do for RegEx's what SQL's WITH statement did for long SQL statements. Backus–Naur Form could act as a s…

PCRE has the DEFINE keyword. Here's an example: https://regex101.com/library/gJ7pU0

(not to be confused with named capture groups)

Re: RegExr

#32

My favorite is https://regex101.com/ But I've found all of the following to be useful: http://regexone.com/ http://www.regexpal.com/ http://www.rexegg.com/ http://regexr.com/ https://www.debuggex.com/ https://regexper.com/ https://www.regular-expressions.info/ http://www.cheatography.com/davechild/cheat-sheets/regular-e... http://eloquentjavascript.net/09_regexp.html http://www.smashingmagazine.com/2009/06/essential-…

Here is one for Ruby: https://rubular.com/

Re: RegExr

#33

My favorite is https://regex101.com/ But I've found all of the following to be useful: http://regexone.com/ http://www.regexpal.com/ http://www.rexegg.com/ http://regexr.com/ https://www.debuggex.com/ https://regexper.com/ https://www.regular-expressions.info/ http://www.cheatography.com/davechild/cheat-sheets/regular-e... http://eloquentjavascript.net/09_regexp.html http://www.smashingmagazine.com/2009/06/essential-…

Thanks for the list, but are they all the same? Why go to one over the other?

Re: RegExr

#34
post #14

The problem I have with all of these regex websites and tools is that they usually only use the regex dialect of whatever language they’re written in. Or at best, a very incomplete list of dialects. Subtle differences between dialects matter a lot. Personally, I would need at least Perl, Python, GNU utils (with and without -E), BSD utils (or whatever comes with macOS, again with and without-E), and vim with the vario…

https://regex101.com/ supports 4 dialects. Certainly not exhaustive, but very handy none-the-less.

Re: RegExr

#35

My favorite is https://regex101.com/ But I've found all of the following to be useful: http://regexone.com/ http://www.regexpal.com/ http://www.rexegg.com/ http://regexr.com/ https://www.debuggex.com/ https://regexper.com/ https://www.regular-expressions.info/ http://www.cheatography.com/davechild/cheat-sheets/regular-e... http://eloquentjavascript.net/09_regexp.html http://www.smashingmagazine.com/2009/06/essential-…

Are there any online regex testers for ICU regexes?

Re: RegExr

#36
post #14

The problem I have with all of these regex websites and tools is that they usually only use the regex dialect of whatever language they’re written in. Or at best, a very incomplete list of dialects. Subtle differences between dialects matter a lot. Personally, I would need at least Perl, Python, GNU utils (with and without -E), BSD utils (or whatever comes with macOS, again with and without-E), and vim with the vario…

If you were on Windows, you could try RegexBuddy. It supports regex dialects for: .NET, Boost (C++), Delphi, Groovy, Oracle Database, PowerShell, R, std::regex, VB6, wxWidgets, C#, MySQL, PHP, PostgreSQL, VBScript, Java, Perl, PCRE, JavaScript, Python, Ruby, Tcl ARE, POSIX BRE, POSIX ERE, GNU BRE, GNU ERE, XML Schema, and XPath. It will even generate code snippets for you based on the regex you create with the tool.…

That does look impressive! I'm tempted to check how well this runs in Wine (since I'm not a Windows user)

Re: RegExr

#37
post #6

I prefer regex101.com because that site assigns different colors to different capture groupings. I made a previous comment on this and why it's helpful: https://news.ycombinator.com/item?id=9581692 (For some reason RegExr.com is submitted to HN much more often than regex101.com. Is there a compelling advantage to RegExr that I've overlooked?)

regexr is open source, unlike regex101.

Re: RegExr

#38
I can highly recommend the following tool: Mastering Regular Expressions by Jeffrey Friedl http://shop.oreilly.com/product/9780596528126.do

I found the pacing to be excellent, with complimentary exercises and that it was educational as both a cheatsheet and a coherent text. Learned a lot from it, despite being experienced from the outset.

Re: RegExr

#39
post #19

I find RegEx's a bit cryptic. Sure, with enough practice one can read them, but I'd like an alternative that can easily break out chunks as named units. One can then reference the named units to compose new named units. Divide-and-Conquer. I'd like to see experiments in alternatives that provide this. It could help do for RegEx's what SQL's WITH statement did for long SQL statements. Backus–Naur Form could act as a s…

I wrote a very crude library like this in VimL to make writing syntax plugins a bit easier: https://github.com/b0o/builder.vim

You can see it in use here: https://github.com/b0o/quicktemplate.vim/blob/master/syntax/...

Re: RegExr

#40

My favorite is https://regex101.com/ But I've found all of the following to be useful: http://regexone.com/ http://www.regexpal.com/ http://www.rexegg.com/ http://regexr.com/ https://www.debuggex.com/ https://regexper.com/ https://www.regular-expressions.info/ http://www.cheatography.com/davechild/cheat-sheets/regular-e... http://eloquentjavascript.net/09_regexp.html http://www.smashingmagazine.com/2009/06/essential-…

These: regex101.com and regexper.com !

Regexper will render your regular expression as a friggin' railroad diagram!! It's extremely handy when debugging your regex or to understand those super complex, multiline regexes, that someone has posted to Stack Overflow.

Both regular-expressions.info and rexegg.com are incredibly good explanations of Regular Expressions.

regular-expressions.info is even available as a PDF e-book against a tip of your choice.

Post reply on HN