New type to handle regular expressions