https://github.com/Kitware/CMake
Raw File
Tip revision: 4811915367cc23e68e2171b83509b8a382ff1941 authored by Brad King on 08 September 2014, 20:39:08 UTC
CMake 3.0.2
Tip revision: 4811915
RegexEscapeString.cmake
macro(REGEX_ESCAPE_STRING _OUT _IN)
    # Escape special regex metacharacters with a backslash
    string(REGEX REPLACE "([$^.[|*+?()]|])" "\\\\\\1" ${_OUT} "${_IN}")
endmacro()
back to top