[ 
https://issues.apache.org/jira/browse/SPARK-8256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14579928#comment-14579928
 ] 

Cheng Hao commented on SPARK-8256:
----------------------------------

I'll take this one.

> string function: regexp_replace
> -------------------------------
>
>                 Key: SPARK-8256
>                 URL: https://issues.apache.org/jira/browse/SPARK-8256
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>            Reporter: Reynold Xin
>
> regexp_replace(string INITIAL_STRING, string PATTERN, string REPLACEMENT): 
> string
> Returns the string resulting from replacing all substrings in INITIAL_STRING 
> that match the java regular expression syntax defined in PATTERN with 
> instances of REPLACEMENT. For example, regexp_replace("foobar", "oo|ar", "") 
> returns 'fb.' Note that some care is necessary in using predefined character 
> classes: using '\s' as the second argument will match the letter s; '\\s' is 
> necessary to match whitespace, etc.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to