Added regular expression support.