regexp_replace {SparkR} | R Documentation |
Replace all substrings of the specified string value that match regexp with rep.
## S4 method for signature 'Column,character,character' regexp_replace(x, pattern, replacement) regexp_replace(x, pattern, replacement)
x |
a string Column. |
pattern |
a regular expression. |
replacement |
a character string that a matched |
regexp_replace since 1.5.0
Other string_funcs: ascii
,
ascii
, ascii,Column-method
;
base64
, base64
,
base64,Column-method
;
concat_ws
, concat_ws
,
concat_ws,character,Column-method
;
concat
, concat
,
concat,Column-method
; decode
,
decode
,
decode,Column,character-method
;
encode
, encode
,
encode,Column,character-method
;
format_number
, format_number
,
format_number,Column,numeric-method
;
format_string
, format_string
,
format_string,character,Column-method
;
initcap
, initcap
,
initcap,Column-method
; instr
,
instr
,
instr,Column,character-method
;
length
, length,Column-method
;
levenshtein
, levenshtein
,
levenshtein,Column-method
;
locate
, locate
,
locate,character,Column-method
;
lower
, lower
,
lower,Column-method
; lpad
,
lpad
,
lpad,Column,numeric,character-method
;
ltrim
, ltrim
,
ltrim,Column-method
;
regexp_extract
,
regexp_extract
,
regexp_extract,Column,character,numeric-method
;
reverse
, reverse
,
reverse,Column-method
; rpad
,
rpad
,
rpad,Column,numeric,character-method
;
rtrim
, rtrim
,
rtrim,Column-method
; soundex
,
soundex
,
soundex,Column-method
;
substring_index
,
substring_index
,
substring_index,Column,character,numeric-method
;
translate
, translate
,
translate,Column,character,character-method
;
trim
, trim
,
trim,Column-method
; unbase64
,
unbase64
,
unbase64,Column-method
;
upper
, upper
,
upper,Column-method
## Not run: regexp_replace(df$c, '(\\d+)', '--')