https://github.com/Kitware/CMake
Revision c1166395b0c151bbb83cf3bdb56982a527e537d8 authored by Kitware Robot on 10 February 2014, 05:01:06 UTC, committed by Kitware Robot on 10 February 2014, 05:01:06 UTC
1 parent 1cc3e9f
Raw File
Tip revision: c1166395b0c151bbb83cf3bdb56982a527e537d8 authored by Kitware Robot on 10 February 2014, 05:01:06 UTC
CMake Nightly Date Stamp
Tip revision: c116639
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