regexp_extract {SparkR} | R Documentation |
Extract a specific(idx) group identified by a java regex, from the specified string column.
regexp_extract(x, pattern, idx) ## S4 method for signature 'Column,character,numeric' regexp_extract(x, pattern, idx)
Other string_funcs: ascii
,
base64
, concat_ws
,
concat
, decode
,
encode
, format_number
,
format_string
, initcap
,
instr
, length
,
levenshtein
, locate
,
lower
, lpad
,
ltrim
, regexp_replace
,
reverse
, rpad
,
rtrim
, soundex
,
substring_index
, translate
,
trim
, unbase64
,
upper
## Not run: regexp_extract(df$c, '(\d+)-(\d+)', 1)