![]() |
![]() |
$str.grepEmulates the GNU Regular Expression Parser |
|
Usage | |
|
|
Description | |
Returns an array with the elements of <strings> which match the string <match>.
<flags> can be any combination of the characters 's','w' and 'r'. If the flag 'w' is specified then <match> is assumed to be a wildcard regular expression (with * and ? wildcards). If the flag 'r' is specified then <match> is assumed to be a standard regular expression. If none of 'w' and 'r' is specified then <match> is treated as a simple string to be searched in each element of the <strings> array. 'r' takes precedence over 'w'. If the flag 's' is specified the matches are case sensitive. Note that since almost any other variable type can be automatically cast to an array, then you can use this function also on scalars or hashes. |
|
Syntax Specification | |
|
|
Examples | |
|
|
See also | |
$array |