You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Returns true if any part of a string matches the supplied regular expression.
3
+
4
+
<p><h4>Syntax</h4>
5
+
regexp_match(<i>string,regex</i>)</p>
6
+
7
+
<p><h4>Arguments</h4>
8
+
<!-- List args for functions here-->
9
+
<i> string</i> → is string. The string to test against the regular expression.<br>
10
+
<i> regex</i> → is string. The regular expression to test against. Backslash characters must be double escaped (eg "\\s" to match a white space character).<br>
Copy file name to clipboardExpand all lines: resources/function_help/regexp_replace-en_US
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -2,14 +2,14 @@
2
2
Returns a string with the supplied regular expression replaced.
3
3
4
4
<p><h4>Syntax</h4>
5
-
replace(<i>string,before,after</i>)</p>
5
+
regexp_replace(<i>string,regex,after</i>)</p>
6
6
7
7
<p><h4>Arguments</h4>
8
8
<!-- List args for functions here-->
9
9
<i> string</i> → is string. The start string.<br>
10
-
<i> before</i> → is string. The string to replace.<br>
11
-
<i> after</i> → is string. The string that will replace <i>before</i><br></p>
10
+
<i> regex</i> → is string. The regular expression to replace. Backslash characters must be double escaped (eg "\\s" to match a white space character).<br>
11
+
<i> after</i> → is string. The string that will replace any matching occurences of the supplied regular expression. Captured groups can be inserted into the replacement string using \\1, \\2, etc. <br></p>
12
12
13
13
<p><h4>Example</h4>
14
14
<!-- Show example of function.-->
15
-
replace('QGIS SHOULD ROCK','SHOULD','DOES') → 'QGIS DOES ROCK'</p>
15
+
regexp_replace('QGIS SHOULD ROCK','\\sSHOULD\\s','DOES') → 'QGIS DOES ROCK'</p>
0 commit comments