in reply to Re^3: Understanding regex
in thread Understanding regex

there's also Graphviz::Regex to see a flow diagram of how a regex matches.