Allow regular expressions to be passed as attribute options