Berserk Docs
Scalar FunctionsString Functions

extract_all

Extracts all matches for a regular expression from a string.

Syntax

extract_all(regex, source)

Parameters

Prop

Type

Returns: dynamic

Examples

Example 1

print extract_all("(\\d+)", "Vikings raided in 793 and 845 and 885")
print_0 (dynamic)
["793","845","885"]

On this page