统計出現次數

统計指定字串或匹配模式在輸入中出現的次數。

輸入: 文本結果: 數值

文本輸入

工具選項

範例

Service names

輸入

api
worker
web
api

Expected answer

2
搜索字串
{"option":"Simple string","string":"a"}
A release queue

輸入

v3
v1
v2
v1

Expected answer

0
搜索字串
{"option":"Simple string","string":"a"}
Case-sensitive usernames

輸入

Alice
alice
Bob
Alice

Expected answer

1
搜索字串
{"option":"Simple string","string":"a"}
A short status feed

輸入

ready
busy
ready
done

Expected answer

2
搜索字串
{"option":"Simple string","string":"a"}
Two-word labels

輸入

first step
second step
first step

Expected answer

0
搜索字串
{"option":"Simple string","string":"a"}

参數

参數默認值輸入與選項
搜索字串{"option":"Regex","string":""}金鑰或文本編碼: 規則運算式, Extended (\n, \t, \x...), Simple 字串

相关工具

實用工具

操作参考

查看原始技术文檔 (English)