R

TestRegex

Regular Expression

- - 0.00 ms

Test String

1

Frequently Asked Questions

PCRE / PHP Regex Tester & Visual IDE

Test and debug PHP/PCRE regular expressions. Features real-time matching, detailed analysis, and full support for flags like global, multiline, and ungreedy.

PCRE (Perl Compatible Regular Expressions) Visual IDE

PCRE is the de facto standard for regular expressions in many languages, most notably PHP. This tool provides a Local-First, strictly compliant environment for testing your patterns.

Supported Flags & Features

  • Global (g): Don't return after the first match.
  • Multi line (m): ^ and $ match start/end of line.
  • Insensitive (i): Case insensitive match.
  • Extended (x): Ignore whitespace/comments in pattern.
  • Single line (s): Dot matches newline.
  • Ungreedy (U): Invert greediness of quantifiers.
  • Duplicate Names (J): Allow duplicate subpattern names.

Perfect for validating preg_match calls with 0% data egress.