{ "testPattern": (a)=> a.concat([match a[1] { "TextOnly_pattern" => a[0].match(/^[a-zA-Z0-9\\-\\.\\?\\,\\\:\\'\\/\\\\\\+\=&em\\$\#_\\!\\~\\@\\em\\(\\)\\{\\}\\[\\]\\;\\*]+[ a-zA-Z0-9\\-\\.\\?\\,\\\:\\'\\/\\\\\\+\=&em\\$\#_\\!\\~\\@\\em\\(\\)\\{\\}\\[\\]\\;\\*]*$/), "Integer_pattern" => a[0].match(/^[0-9]+$/) } != null ? "valid" : "invalid" ]) }