json-gate pattern support

support for json-gate pattern to validate a string by a regular
expression