Changed resolution matching to a regular expression.