preg_match

preg_match -- Perform a regular expression match

Description

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

דוגמה 1 .




דוגמה 2 . find the word " web "




דוגמה 3 .









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