View source: R/search_replace_4.R
stri_replace_rstr | R Documentation |
Converts a gsub
-style replacement strings
to those which can be used in stri_replace
.
In particular, $
becomes \$
and \1
becomes $1
.
stri_replace_rstr(x)
x |
character vector |
Returns a character vector.
Marek Gagolewski and other contributors
The official online manual of stringi at https://stringi.gagolewski.com/
Gagolewski M., stringi: Fast and portable character string processing in R, Journal of Statistical Software 103(2), 2022, 1-59, \Sexpr[results=rd]{tools:::Rd_expr_doi("10.18637/jss.v103.i02")}
Other search_replace:
about_search
,
stri_replace_all()
,
stri_trim_both()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.