QGIS/resources/function_help/regexp_substr

15 lines
620 B
Plaintext

<h3>regexp_substr() function</h3>
Returns the portion of a string which matches a supplied regular expression.
<p><h4>Syntax</h4>
regexp_substr(<i>string,regex</i>)</p>
<p><h4>Arguments</h4>
<!-- List args for functions here-->
<i> string</i> &rarr; is string. The input string.<br>
<i> regex</i> &rarr; is string. The regular expression to match against. Backslash characters must be double escaped (eg "\\s" to match a white space character). Non-greedy regular expressions are not supported.<br>
<p><h4>Example</h4>
<!-- Show example of function.-->
regexp_substr('abc123','(\\d+)') &rarr; '123'</p>