I'm working on a network inspection tool which allows users to match regex over network flows. Its working fine and now I would like to add graphing functionality to it. This is to provide the user a dot graph that represents the internal state machine of the regex.
I found interactive regex debugger and visualizer quite useful and want to have mostly similar Python-based functionality to generate the graph. I've a tool that accepts a custom regex language and converts the expression to such a graph. Since its not compatible with Python re expressions, I can not use it.
Any pointers to how I can convert Python regex to FA state machines?