translate expand_more
arrow_back 返回首页

Regex 测试器

可直接在浏览器中测试正则表达式,查看匹配结果并调整标志位。

code_blocks 编码hourglass_top 正在等待结果

匹配数量

2

/\b[\w.%+-]+@[\w.-]+\.[A-Za-z]{2,}\b/gu

位置 9

hello@gogotem.com

位置 34

team@example.org

工作方式

The tester builds a JavaScript regular expression from your pattern and selected flags, then scans the text and lists every match with its position.

使用提示

  • Turn on the global flag to capture every match instead of just the first one.
  • Case-insensitive matching is useful for email, tags, and user-entered text.
  • Invalid syntax is reported immediately so you can fix the pattern quickly.

常见问题

Does this use JavaScript regex syntax?expand_more

Yes. The tester follows the browser RegExp engine, including common flags such as global, ignore-case, multiline, dotAll, and unicode.

Can I use this for quick validation patterns?expand_more

Yes. It is useful for checking email patterns, URL fragments, form rules, and text extraction logic before using them in code.

继续浏览

接下来可以试试的工具

继续浏览同类工具和 Gogotem 上人气较高的工具。

查看全部工具 arrow_forward