PHP Regular Expressions (RegEx) Tester

Gecko Technologies Resources Tech Info PHP RegEx Tester

PHP Regular Expression (RegEx) Tester

A quick tester for PHP regular expressions. Fill in the appropriate fields below to test regular expressions using the PHP RegExp engine.

Enter the "needle" (regex expression to match):

Enter the replacement string:
Enter the "haystack" (string to search):

Ignore case (make the regex match case-insensitive)
Global matching (match all, not just the first one)
Multi-line matching (a match can span lines)

THIS INFORMATION IS PROVIDED ON AN "AS IS" BASIS AND YOU ACCEPT ALL RISKS FOR ITS USE. MYTECHNOLOGYCENTER.COM AND GECKO TECHNOLOGIES MAKE NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO ANY MATTER WHATSOEVER. IN NO EVENT SHALL MYTECHNOLOGYCENTER.COM OR GECKO TECHNOLOGIES BE LIABLE TO YOU OR ANY OTHER PARTY FOR ANY INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES.