Signature
DValue regex_search_all(String pattern, String subject) DValue regex_search_all(String pattern, String subject, String flags)
Parameters
pattern : PCRE2 regular expression pattern
subject : string to search
flags : optional regex flags
return value : a DValue containing all non-overlapping matches
Finds every non-overlapping match of pattern in subject.
Example:
Return shape:
matchedistruewhen at least one match exists.countis the number of matches.matchesis a list of entries with the same shape returned byregex_search().patternandflagsmirror the call inputs.
Zero-length matches are handled safely; the scanner advances after each zero-length match to avoid infinite loops.
Example
DValue matches = regex_search_all("[a-z]+", "uce docs");
print(matches.is_list() ? "matches\n" : "none\n");
Output
none