Better HN
topnewbestaskshowjobs
Log inSign up

JexCheng

6 karma · joined Nov 27, 2014 (12y ago) · 5 submissions

Submissions

1.

Show HN: RSuite – React UI Component Suite(rsuitejs.com ↗)

3 points · by JexCheng · 8y ago · 1 comment

2.

RSuite:A Suite of React UI Components(rsuitejs.com ↗)

5 points · by JexCheng · 8y ago · 2 comments

comment 12y ago · link · parent

Thank you for the great works of debuggex, I like it.

My little tool didn't intend to act like a extreme powerful and multifunctional tool which debuggex is. I know debuggex need to conform existing regex engines,so it will be more useful and can be widely applied. But what my tool intended is another side,trying to point out errors strictly.Such as /\1(a)/ or /(\1)/ doesn't make sense, so I think the ability to report errors like this will be useful.Although js interpreter's regex engine still supports octal today,but I remove it radically(see the project README).Maybe this little feature is useful for someone. ;)

comment 12y ago · link · parent

My explanation:https://news.ycombinator.com/item?id=8665721

comment 12y ago · link · parent

Thanks for sharing it here. Actually I didn't intend to publish this tool at the beginning,because there are some already. This tool emerges from a piece of extempore code which is a regex parser implemented with DFA only. Then I give it a GUI,so becomes regulex.

Debuggex and regexper are powerful,I agree,that I also hesitate whether there's any reason to publish it.

But I'd like to point out some merits of regulex:

- Regulex is dedicated to ECMAScript RegExp syntax(So I didn't plan to add PCRE support now)

- regexper.com can not point out the syntax error index precisely.(Much JS interpreter can not do that)

- regexper and debuggex both tolerate OctalEscape.

- Regulex can detect invalid backref,which is treated as OctalEscape in Debuggex and regexper.

- Because of OctalEscape's complexity, Debuggex did not parse `(\1)\1\2` correctly ( https://www.debuggex.com/r/_U1r_NxTvLan7h9R ),also regexper.And /^\1(a)$/ will match "a",not "aa".So I treat it as an error.

So at least it can be used to find javascript regex syntax error. ;)