Fix "regex:" not working at all in attribute contexts.