結果 : how to validate regex in javascript