Programmatically create regular expressions.