PHP - Test for expression in string
Find match of a particular regular expression in a string.
Perform a regular expression match. documentation
if(preg_match({{pattern}}), {{string}}) {
{{match_code}}
} else {
{{no_match_code}}
}
Find match of a particular regular expression in a string.
Perform a regular expression match. documentation
if(preg_match({{pattern}}), {{string}}) {
{{match_code}}
} else {
{{no_match_code}}
}
last update: