Toggle navigation
RegexPlanet
Testing
Go (beta)
Haskell (beta)
Java
JavaScript
.Net
Perl (beta)
PHP (beta)
PostgreSQL (beta)
Python
Ruby (beta)
Rust (beta)
Tcl (beta)
XRegExp (beta)
Previous version
Cookbook
Support
PCRE overview
Syntax
Regular Expression Test Page
for PHP
Share:
Online testing with the PHP engine is still in beta.
Test Results
Expression to test
Regular expression:
Options:
i - Case insensitive (PCRE_CASELESS)
x - Allow comments in regex (PCRE_EXTENDED)
s - Dot matches line terminator (PCRE_DOTALL)
m - ^ and $ match EOL (PCRE_MULTILINE)
u - Pattern strings are treated as UTF-8 (PCRE8)
Replacement:
Input 1:
Input 2:
Input 3:
Input 4:
Input 5:
Cookbook:
View Recipe
×
Close
Desired Result
This is just an experiment and does not do anything yet!
Target pairs in the string: