Allow scopes to be specified rather than regex for patterns