% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/escape_special_chars.R
\name{escape_special_chars}
\alias{escape_special_chars}
\title{Escape Special Characters in a String}
\usage{
escape_special_chars(s)
}
\arguments{
\item{s}{A character string to be processed}
}
\value{
A new string with all specified special characters escaped with backslashes
}
\description{
Escapes all specified special characters in a string by adding a backslash before them.
This is particularly useful for preparing strings for use in regular expressions or
other contexts where special characters need to be treated as literals.
}
