mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-10 00:04:23 -04:00
Should fix: #41453 in which values holding UTF diacritics were not handled. While these expressions are used for (international) text values, I think they should be usable with Unicode (instead of ASCII only) See: https://doc.qt.io/qt-5/qregularexpression.html and: https://doc.qt.io/qt-5/qregularexpression.html#PatternOption-enum
11 lines
736 B
Plaintext
11 lines
736 B
Plaintext
{
|
|
"name": "regexp_match",
|
|
"type": "function",
|
|
"groups": ["Conditionals", "String"],
|
|
"description": "Return the first matching position matching a regular expression within an unicode string, or 0 if the substring is not found.",
|
|
"arguments": [ {"arg":"input_string","description":"the string to test against the regular expression"},
|
|
{"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 a match word boundary)."}
|
|
],
|
|
"examples": [ { "expression":"regexp_match('QGIS ROCKS','\\\\\\\\sROCKS')", "returns":"5"}, { "expression":"regexp_match('Budač','udač\\\\\\\\b')", "returns":"2"}]
|
|
}
|