better regexes for typematic settings query