handle constrains with named preg_match subpatterns, edge-case handling for closure-compiler, which is always latest version