What's the most efficient way of checking if a string has exactly three dots in it using JavaScript?

前端 未结 0 1530
轻奢々
轻奢々 2020-12-07 07:10

Ideally I would like a function has_three_dots(string) to return a true or false value. The string can contain more characters but must contain exactly three dots (.), not m

相关标签:
回答
  • 消灭零回复
提交回复
热议问题