結果 : check if string satisfies regex javascript