some fix suggested by Coverity ( http://coverity.com/ )
regular expression to parse metadata condition formulas