preg_match

preg_match -- Perform a regular expression match

Description

int preg_match ( string pattern, string subject [, array matches [, int flags]])

PREG_OFFSET_CAPTURE

The flags parameter is available since PHP 4.3.0 .

Exempel 1 .




Exempel 2 . find the word " web "




Exempel 3 .









See also preg_match_all() , preg_replace() , and preg_split() .