PHP Regular Expression Functions. PHP has many useful functions to work with regular expressions. Here is a quick cheat sheet of the main PHP regex functions. Remember that all of them are case sensitive. For more information about the native functions. Regex Cheat Sheet Regex Cheat Sheet tries to provide a basic reference for beginner and advanced developers, lower the entry barrier for newcomers, and help veterans refresh the old tricks. A regular expression (shortened as regex or regexp; also referred to as rational expression) is a sequence of characters that define a search pattern.
PrevNext
When learning regexes, or when you need to use a feature you have not used yet or don't use often, itcan be quite useful to have a place for quick look-up. I hope this Regex Cheat-sheet will provide such aid for you.
Character Classes
Regex Character Classes and Special Character classes.
TODO: add examples w and d matching unicode letters and numebers.
Quantifiers
'Quantifier-modifier' aka. Minimal Matching
Other
Grouping and capturing
Anchors
Modifiers
Pcre Regex Cheat Sheet 2018
Extended
Other Regex related articles
Pcre Regex Cheat Sheet Download
Official documentation
Published on 2015-08-19