统计出现次数

统计指定字符串或匹配模式在输入中出现的次数。

输入: 文本结果: 数值

文本输入

工具选项

案例

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)