Improved grammar for regexp parsing.
Better wrapping of ftrace.