rluvaton commented on code in PR #14282:
URL: https://github.com/apache/datafusion/pull/14282#discussion_r1932901931


##########
docs/source/user-guide/sql/scalar_functions.md:
##########
@@ -1919,6 +1920,31 @@ SELECT regexp_replace('aBc', '(b|d)', 'Ab\\1a', 'i');
 
 Additional examples can be found 
[here](https://github.com/apache/datafusion/blob/main/datafusion-examples/examples/regexp.rs)
 
+### `regexp_extract`
+
+Extract a specific group matched by [regular 
expression](https://docs.rs/regex/latest/regex/#syntax). If the regex did not 
match, or the specified group did not match, an empty string is returned..
+
+```
+regexp_extract(str, regexp[, idx])

Review Comment:
   this seems like the index is optional while it is required



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to