正则测试,我们致力于为用户提供专业的免费API数据接口服务
测试正则表达式匹配
https://qhapi.com/api/regex/api.php
https://qhapi.com/api/regex/api.php?apikey=你的API密钥(登录后获取)&pattern=pattern&text=文本内容
点击右侧按钮复制完整请求地址,参数值请替换为实际有效值
| 参数名 | 是否必填 | 参数类型 | 参数说明 |
|---|---|---|---|
|
apikey
|
是 | string |
你的API密钥(登录后获取)
点击登录获取秘钥 |
|
pattern
|
是 | string | pattern |
|
text
|
是 | string | 文本内容 |
| 参数名 | 参数类型 | 参数说明 |
|---|---|---|
|
pattern
|
string | pattern |
|
matches
|
string | matches |
|
count
|
string | 数量 |
{
"code": 200,
"msg": "success",
"data": {
"pattern": "示例值",
"matches": "示例值",
"count": "数量"
}
}