RegExr: A website for interactive regex prototyping with syntax highlighting
31–40 of 72 posts
Re: RegExr: A website for interactive regex prototyping with syntax highlighting
#32Author: - When did you begin this? - What front-end JS framework did you program this in? - How many visitors do you get per day?
Re: RegExr: A website for interactive regex prototyping with syntax highlighting
#33 emacs
M-x regexp-builderRe: RegExr: A website for interactive regex prototyping with syntax highlighting
#34Re: RegExr: A website for interactive regex prototyping with syntax highlighting
#35Nice work :) Looks like this tool puts the emphasis on the pedagogical aspect. For development, the most fantastic tool that I know of in this space is debuggex. Here is an example with roman numbers: https://www.debuggex.com/r/Xqlv3QcAuw_EgPSM
Re: RegExr: A website for interactive regex prototyping with syntax highlighting
#36For example, replace the RegExr sample regex with "([A-Z])\w+\s\w(\d.\d)" and compare[1][2] its color coding capability to the other regex helpers.
The other sites such as regex101.com & debuggex.com will delineate the capture groups within the matched text using different colors. This is very helpful for complex captures because making the boundaries visible can reveal bugs in your thinking of what substrings the regex is actually capturing.
(I don't intend to be negative. If capture group color-coding is an easy coding enhancement for RegExr, consider my comments as mentioning a minor nit.)
[1]https://regex101.com/r/eB5jY1/1
[2]https://www.debuggex.com/r/mci3WLNmHGTEatf6
(couldn't find a way to enable /g global on debuggex.com (even tried PCRE option) but color boundaries still show up on the 1st capture group)
Re: RegExr: A website for interactive regex prototyping with syntax highlighting
#37Unfortunately, RegExr does not color-code the different capturing groups. For example, replace the RegExr sample regex with "([A-Z])\w+\s\w(\d.\d)" and compare[1][2] its color coding capability to the other regex helpers. The other sites such as regex101.com & debuggex.com will delineate the capture groups within the matched text using different colors. This is very helpful for complex captures because making the bou…
Re: RegExr: A website for interactive regex prototyping with syntax highlighting
#38Re: RegExr: A website for interactive regex prototyping with syntax highlighting
#39I've been programming for about two decades. I had composed three regexes before my first coffee and before seeing this article this morning. My problem: I still don't have a good mnemonic to remember how magic differs grep, egrep, vim, awk, Perl, Python, etc. If that this site had modes and flavoured cheat-sheets I would live there!
I use RegexBuddy, it has a shitload of different modes.
Re: RegExr: A website for interactive regex prototyping with syntax highlighting
#40RegExr looks really nice, but my go to is still http://rubular.com .
What do you think makes it better? I think the UX on rubular is much cleaner. Don't they both serve a different flavor of regex?