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