测试你的正则表达式!

实时高亮显示正则匹配位置,并可查看分组、替换预览和可直接粘贴的代码!
//g
flags
presets
 
highlight
Contact: hong.gildong+news@json.kr, support@example.co.kr Docs: https://json.kr/ko/dev/regex?tab=1 Server: 192.168.0.1 (not 999.1.1.1) Phone: 010-1234-5678, 01098765432 RRN: 900101-1234567 BRN: 123-45-67890 Postal: 06236 Date: 2026-10-04 Time: 09:30:00 Color: #ffd43b, #1c1917 ID: 3f2b8c1e-9a4d-4c7e-8f1a-2b3c4d5e6f70 한글만 indented line with trailing spaces

code

JavaScript/(?<user>[\w.+-]+)@(?<domain>[\w-]+(?:\.[\w-]+)+)/g
JavaPattern pattern = Pattern.compile("(?<user>[\\w.+-]+)@(?<domain>[\\w-]+(?:\\.[\\w-]+)+)");
Pythonpattern = re.compile(r"(?P<user>[\w.+-]+)@(?P<domain>[\w-]+(?:\.[\w-]+)+)")

测试你的正则表达式!

实时高亮显示正则匹配位置,并可查看分组、替换预览和可直接粘贴的代码!

使用场景

- 立即检查正则 - 编辑模式时实时高亮匹配位置,并以表格显示分组值。 - 预览查找替换 - 预览使用 $1 或 $<名称> 的替换结果并复制。 - 粘贴到代码 - 复制已按 JavaScript、Java、Python 语法转义的代码。 - 不会卡死页面 - 发生灾难性回溯的模式会在 1 秒后停止。