reg_join {baizer} | R Documentation |
join the matched parts into string
reg_join(x, pattern, sep = "")
x |
character |
pattern |
regex pattern |
sep |
separator |
character
reg_join(c("A_12.B", "C_3.23:2"), "[A-Za-z]+")
reg_join(c("A_12.B", "C_3.23:2"), "\\w+")
reg_join(c("A_12.B", "C_3.23:2"), "\\d+", sep = ",")
reg_join(c("A_12.B", "C_3.23:2"), "\\d", sep = ",")