Lines Matching refs:preg_match_all
2 Test preg_match_all() function : basic functionality
6 * proto int preg_match_all(string pattern, string subject, [array subpatterns [, int flags [, int o…
10 var_dump(preg_match_all('/[0-35-9]/', $string, $match1, PREG_OFFSET_CAPTURE|PREG_PATTERN_ORDER, -10…
12 var_dump(preg_match_all('/[tT]his is a(.*?)\./', $string, $match2, PREG_SET_ORDER)); //finds "This …
14 var_dump(preg_match_all('@\. \\\(.*).@', $string, $match3, PREG_PATTERN_ORDER)); //finds ".\ [...]"…
16 var_dump(preg_match_all('/\d{2}$/', $string, $match4)); //tries to find 2 digits at the end of a st…
18 var_dump(preg_match_all('/(This is a ){2}(.*)\stest/', $string, $match5)); //tries to find "This is…
22 var_dump(preg_match_all('/test/', $string));
23 var_dump(preg_match_all('/this isn\'t in the string/', $string));
24 var_dump(preg_match_all('/world/', $string));
25 var_dump(preg_match_all('/[0-9]/', $string));