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 .

Príklad 1 .




Príklad 2 . find the word " web "




Príklad 3 .









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