Start using RegExp instead of strings for the type, removing some pattern specific methods