restructured parsing regexes framework