Use RegExp and a JSON config