Add support for regular expressions