A regular expression is a sequence of characters that forms a search pattern.
PHP uses PCRE (Perl Compatible Regular Expressions).
preg_match() - Returns 1 if pattern was found in string, 0 if notpreg_match_all() - Returns the number of times pattern was foundpreg_replace() - Returns a new string where matched patterns have been replacedEdit the code below and click Run to see the result live.