CJex / regulex

:construction: Regular Expression Excited!
https://jex.im/regulex/
MIT License
5.71k stars 756 forks source link

Group counting issue #2

Closed hughsaunders closed 9 years ago

hughsaunders commented 9 years ago

Hey, Thanks for writing this visualiser, I enjoyed playing with it :+1:

However I noticed an issue where nested capture groups cause backrefs to be marked as recursive when they aren't.

screen shot 2014-11-26 at 13 13 57

In the screenshot, the diagram shows the outer capture group as \1 and the inner group as \2. This is consistent with grep. However when I add \2 inside group 1, but not inside group 2, the backref is marked as recursive.

CJex commented 9 years ago

Thank you. This mistake was made by my previous unwise hotfix. Now it was fixed.