Test regular expressions against php's preg functions.

The data you enter will be passed directly to the preg function indicated by the button pressed.

The pattern must be enclosed by matching delimiters. It can be followed by any number of perl or php trailing options with the exception of the 'e' flag.

For more information on perl compatible regular expressions in php, refer to the php manual.




flags

Notes on Results

Strings are displayed as UTF-8. Some common non-visible characters are replaced with visible indicators of their presence, e.g. ยท indicates a space (0x20).

Installation Details

  • PHP: 5.2.6
  • PCRE: 7.8 2008-09-05

You have javascript disabled. Some features of this page will run better with javascript enabled.