結果 : how to use regular expression in if condition in javascript