VocabularypcreInputssubject | a string |
obj | a string, compiled regular expression or a regexp literal |
OutputsWord descriptionFinds all matches of the given regexp in the string. Matches is sequence of associative array where the key is the name of the capturing group, or f to denote the full match.
ExamplesUSE: pcre
"foobar" "(?<ch1>\\w)(?<ch2>\\w)" findall .
{
{ { f "fo" } { "ch1" "f" } { "ch2" "o" } }
{ { f "ob" } { "ch1" "o" } { "ch2" "b" } }
{ { f "ar" } { "ch1" "a" } { "ch2" "r" } }
}
DefinitionMethods