A utility for turning pattern strings into a regular expressions.