Live data from Hacker News

Just released a major update for my site. What do you guys think?

regex101.com

41–50 of 78 posts

Re: Just released a major update for my site. What do you guys think?

#41
post #30

It would be great to know a little bit about the internals of the "explanation engine".

The colorizer does most of the grunt work, it tokenizes the regex and colors it properly. The explainer then basically just loops over those tokens and explain them. It's a bit hacked together as it works right now though; but it seems to do the trick. The explainer does some additional error-checking which the colorizer doesn't have enough resources to do as well. Anything in particular you want to know?

Re: Just released a major update for my site. What do you guys think?

#42

There is an inconsistency in naming: you call it "flags" at the top but "options" at the bottom. I think you should also say "Regular expression quick reference" rather than "Regex quick reference" for the same consistency since you use "regular expressions" everywhere else.

Adjusted, thank you!

Re: Just released a major update for my site. What do you guys think?

#49
post #25

Pretty nice, though would be better to use CodeMirror or Ace instead of textareas.

I have been looking into this, but I know too little about them to make my current scripts work along side one of them. If you can help me out that would be greatly appreciated.

It's quite easy actually, so i can help, is your code on github?

Re: Just released a major update for my site. What do you guys think?

#50
post #44

No info for /u. And why it's not default?

Do you mean its not explained correctly or its not in the quickref? Its not enabled by default because it changes the behavior of many things, for example what \d and \w match. The user has to decide for himself what flags to use.
Post reply on HN