Utilivy
All-in-one tools for smart life
智能生活全能工具
EN

Regex Tester

正则表达式测试器

Test and debug regular expressions with instant results

测试和调试正则表达式,即时查看结果

Enter your regular expression pattern 输入您的正则表达式模式
Optional flags: g (global), i (case-insensitive), m (multiline) 可选标志: g (全局), i (不区分大小写), m (多行)
Match Results 匹配结果

Results will appear here

结果将显示在这里

How to Use 使用说明

  1. 1. Enter your regular expression pattern
  2. 1. 输入您的正则表达式模式
  3. 2. Add optional flags (g, i, m)
  4. 2. 添加可选标志 (g, i, m)
  5. 3. Enter text to test against the regex
  6. 3. 输入要测试的文本
  7. 4. Click "Test Regex" to see matches
  8. 4. 点击"测试正则表达式"查看匹配结果

About Regular Expressions 关于正则表达式

  • ▸ Patterns used to match character combinations in strings
  • ▸ 用于匹配字符串中字符组合的模式
  • ▸ Widely used in programming, text editing, and data validation
  • ▸ 广泛用于编程、文本编辑和数据验证
  • ▸ Use metacharacters like . * + ? ^ $ ( ) [ ] { } | \
  • ▸ 使用元字符如 . * + ? ^ $ ( ) [ ] { } | \
  • ▸ Flags modify how the regex is interpreted
  • ▸ 标志修改正则表达式的解释方式
Regex tested successfully! 正则表达式测试成功!