On preference change, update single regular expression. Handle null or invalid regular expressions. Set default values for preferences.