rename function to parse_pattern, since there's another type of config
expression search