Regular expression tester with syntax highlighting, explanation, cheat sheet for PHP/PCRE, Python, GO, JavaScript, Java, C#/.NET, Rust. Introduction The following pages are intended to give you a solid foundation in how to write regular expressions (Also referred to as regex or RE's). A regular expression is a means for describing a particular pattern of characters of text. That's kinda a bit abstract so let's try to put it into perspective. With regular expressions you can: Search for particular items within a large body of text. eg. You may wish to identify all email addresses in some content using a text editor. Replace ... Search, filter and view user submitted regular expressions in the regex library. Over 20,000 entries, and counting! The tables below are a reference to basic regex. While reading the rest of the site, when in doubt, you can always come back and look here. (It you want a bookmark, here's a direct link to the regex reference tables). I encourage you to print the tables so you have a cheat sheet on your desk for quick reference.