Sign in
fuchsia
/
third_party
/
cmake
/
v3.1.0
/
.
/
Tests
/
RegexEscapeString.cmake
blob: 92aed17b1fecd50b83312672f049ddc6d433021a [
file
] [
log
] [
blame
]
macro
(
REGEX_ESCAPE_STRING _OUT _IN
)
# Escape special regex metacharacters with a backslash
string
(
REGEX REPLACE
"([$^.[|*+?()]|])"
"\\\\\\1"
$
{
_OUT
}
"${_IN}"
)
endmacro
()