语言
/v1/regex/test
将带有可选标志的正则表达式模式应用于测试字符串,并返回所有匹配项及其位置和捕获的组。 支持 g、i、m、s 和 u 标志。
The regular expression pattern (without delimiters).
Regex flags (e.g., "gi" for global case-insensitive).
The string to test the pattern against.
curl -X POST https://api.botoi.com/v1/regex/test \ -H "Content-Type: application/json" \ -d '{"pattern":"\\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,}\\b","flags":"gi","testString":"Contact support@botoi.com or sales@botoi.com"}'
在将复杂模式嵌入到应用程序代码中之前,根据示例数据测试复杂模式以验证匹配并捕获组。
让用户将自定义验证规则定义为正则表达式模式,并根据应用程序中的示例输入对其进行测试。
使用捕获组从日志行或抓取的内容中提取电话号码、日期或 ID。
Free tier includes 5 requests per minute with no credit card required. Upgrade for higher limits.