Counting all substring cases in a string

前端 未结 0 452
情书的邮戳
情书的邮戳 2021-01-13 11:44

I am counting the occurrence of specific keypairs in a word

console.log("acceptable".match(/ab|ac|ar/gi).length); //2

(picture) Exa

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