Implements regex and abstract spec objects