1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/search_replace_4.R
\name{stri_replace_rstr}
\alias{stri_replace_rstr}
\title{Convert gsub-Style Replacement Strings}
\usage{
stri_replace_rstr(x)
}
\arguments{
\item{x}{character vector}
}
\value{
Returns a character vector.
}
\description{
Converts a \code{\link[base]{gsub}}-style replacement strings
to those which can be used in \code{\link{stri_replace}}.
In particular, \code{$} becomes \code{\\$} and \code{\\1} becomes \code{$1}.
}
\seealso{
The official online manual of \pkg{stringi} at \url{https://stringi.gagolewski.com/}
Gagolewski M., \pkg{stringi}: Fast and portable character string processing in R, \emph{Journal of Statistical Software} 103(2), 2022, 1-59, \doi{10.18637/jss.v103.i02}
Other search_replace:
\code{\link{about_search}},
\code{\link{stri_replace_all}()},
\code{\link{stri_trim_both}()}
}
\concept{search_replace}
\author{
\href{https://www.gagolewski.com/}{Marek Gagolewski} and other contributors
}
|