findall ( subject obj -- matches )


Vocabulary
pcre

Inputs
subjecta string
obja string, compiled regular expression or a regexp literal


Outputs
matchesa sequence


Word description
Finds 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.

Examples
USE: 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" } } }


Definition

GENERIC: findall ( subject obj -- matches )


Methods