Test PHP regular expressions live in your browser and generate sample code for pregmatch, pregmatchall, pregreplace, preggrep, and pregsplit! A Live Regular Expression Tester for PHP. Tutorials and Regex Database NEW! Get the offline version! Regex Regex Options. Replacement.