Priorities regexps fix. NOT TESTED IN RUNTIME!