Yeah debuggex's output looks slightly better, on top of having a lot more options. Regulex however is open-source with nicely written javascript: https://github.com/JexCheng/regulex
Here's a side by side comparison with the regexp I wrote to parse URLs [0]