Move to a json object for strings

These strings are converted into regular expressions automagically
to create the validation/replacement behavior.

The JSON format is so that the JS function can also use the same list.