結果 : check if value matches regex javascript