2015-06-11 12:02:27 +10:00
{
2015-09-20 17:12:43 +02:00
"name": "regexp_match",
"type": "function",
2020-07-02 01:46:48 +01:00
"groups": ["Conditionals", "String"],
2021-02-13 00:24:33 +01:00
"description": "Return the first matching position matching a regular expression within an unicode string, or 0 if the substring is not found.",
2015-06-11 12:02:27 +10:00
"arguments": [ {"arg":"input_string","description":"the string to test against the regular expression"},
2021-02-19 08:07:21 +01:00
{"arg":"regex","description":"The regular expression to test against. Backslash characters must be double escaped (e.g., \"\\\\\\\\s\" to match a white space character or \"\\\\\\\\b\" to match a word boundary)."}
2015-06-11 12:02:27 +10:00
],
2021-02-13 00:24:33 +01:00
"examples": [ { "expression":"regexp_match('QGIS ROCKS','\\\\\\\\sROCKS')", "returns":"5"}, { "expression":"regexp_match('Budač','udač\\\\\\\\b')", "returns":"2"}]
2015-06-11 12:02:27 +10:00
}