mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-22 00:06:12 -05:00
27 lines
1004 B
Plaintext
27 lines
1004 B
Plaintext
{
|
|
"name": "regexp_matches",
|
|
"type": "function",
|
|
"groups": ["Arrays"],
|
|
"description": "Returns an array of all strings captured by capturing groups, in the order the groups themselves appear in the supplied regular expression against a string.",
|
|
"arguments": [{
|
|
"arg": "string",
|
|
"description": "the string to capture groups from against the regular expression"
|
|
}, {
|
|
"arg": "regex",
|
|
"description": "the regular expression used to capture groups"
|
|
}, {
|
|
"arg": "empty_value",
|
|
"optional": true,
|
|
"default": "''",
|
|
"description": "the optional string to use as replacement for empty (zero length) matches"
|
|
}],
|
|
"examples": [{
|
|
"expression": "regexp_matches('QGIS=>rocks','(.*)=>(.*)')",
|
|
"returns": "[ 'QGIS', 'rocks' ]"
|
|
}, {
|
|
"expression": "regexp_matches('key=>','(.*)=>(.*)','empty value')",
|
|
"returns": "[ 'key', 'empty value' ]"
|
|
}],
|
|
"tags": ["array", "groups", "capturing", "captured", "order", "appear", "supplied", "regular", "strings"]
|
|
}
|