Better to just accept a RegExp/pattern literal as the setting.