Regular Expression
Execute and test PHP functions for manipulating data through regular expressions.
The syntax for patterns used in these functions closely resembles Perl 5. The expression must be enclosed in the delimiters, a forward slash (/), for example. Delimiters can be any on-alphanumeric, non-whitespace ASCII character except the backslash (\) and the null byte. If the delimiter character has to be used in the expression itself, it needs to be escaped by backslash.
preg_grep
Returns the array consisting of the elements of the $input array that match the given $pattern.
preg_match
Searches $subject for all matches to the regular expression given in $pattern and puts them in $matches in the order specified by $flags.
preg_match_all
Searches $subject for all matches to the regular expression given in $pattern and puts them in $matches in the order specified by $flags.
preg_replace
Searches $subject for matches to $pattern and replaces them with $replacement.
preg_quote
preg_quote() takes $str and puts a backslash in front of every character that is part of the regular expression syntax.
preg_split
Split the given string by a regular expression.
