結果 : javascript check if regex is valid