xccui commented on a change in pull request #6450: [FLINK-9991] [table] Add 
regexp_replace supported in TableAPI and SQL
URL: https://github.com/apache/flink/pull/6450#discussion_r216953495
 
 

 ##########
 File path: docs/dev/table/functions.md
 ##########
 @@ -2638,6 +2650,18 @@ STRING.repeat(INT)
         <p>E.g., <code>'This is a test String.'.repeat(2)</code> returns "This 
is a test String.This is a test String.".</p>
       </td>
     </tr>    
+
+    <tr>
+      <td>
+        {% highlight java %}
+STRING1.regexpReplace(STRING2, STRING3)
+{% endhighlight %}
+      </td>
+       <td>
+         <p>Returns a string resulting from replacing all substrings in 
<i>string1</i> that match the regular expression <i>string2</i> with 
replacement <i>string3</i>, if <i>string1</i> or <i>string2</i> or 
<i>string3</i> is NULL, returns NULL.</p> 
+         <p>E.g. <code>"foobar".regexpReplace("oo|ar", """)</code> returns 
"fb".</p>
 
 Review comment:
   \<p>E.g., \<code>'foobar'.regexpReplace('oo|ar', '')\</code> returns 
"fb".\</p>

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to