Regular Expression Functions in PHP
Function | Description |
---|---|
preg_match() | Performs a regular expression match. |
preg_match_all() | Performs a global regular expression match. |
preg_replace() | Performs a regular expression search and replace. |
preg_replace_callback() | Performs a regular expression search and replace using a callback. |
preg_split() | Splits a string by a regular expression. |
preg_quote() | Quotes regular expression characters. |
preg_grep() | Returns the elements of an input array that match the given pattern. |