Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add regexp_substr function for returning matched part of string again…
…st regex
- Loading branch information
1 parent
c07b2cc
commit a85b0bc
Showing
3 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<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> → is string. The input string.<br> | ||
<i> regex</i> → is string. The regular expression to match against. Backslash characters must be double escaped (eg "\\s" to match a white space character).<br> | ||
|
||
<p><h4>Example</h4> | ||
<!-- Show example of function.--> | ||
regexp_substr('abc123','(\\d+)') → '123'</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters