extract

Extracts the groups from the extract regex into the data value.
extract($data , extract , flags = "ism" ) : List
$data.extract( extract , flags = "ism" ) : List
Parameters
$data String | List | Dict

The input string, list or dictionary. If it is a list or a dictionary then the extraction will be done on all values.

extract String (Python Regex)

The regex to use for extraction - only the groups in the regex will be extracted - or the zero group if none is defined.

flags String

Regex flags to use. Several flags can be used by concatenating them. Default: ism.
i = Case insensitive
s = Match . to any character, including newlines.
m = Multi-line matching, affecting ^ and $.

See also
Examples

How to keep only items that matches in a List