diff --git a/Help/command/if.rst b/Help/command/if.rst index 2a087d0ac1..f0a9588c31 100644 --- a/Help/command/if.rst +++ b/Help/command/if.rst @@ -103,7 +103,7 @@ Possible expressions are: ``if( MATCHES regex)`` True if the given string or variable's value matches the given regular - expression. + expression. See :ref:`Regex Specification` for regex format. ``if( LESS )`` True if the given string or variable's value is a valid number and less diff --git a/Help/command/string.rst b/Help/command/string.rst index 719917850e..fe38c992fb 100644 --- a/Help/command/string.rst +++ b/Help/command/string.rst @@ -77,6 +77,8 @@ The replace expression may refer to paren-delimited subexpressions of the match using ``\1``, ``\2``, ..., ``\9``. Note that two backslashes (``\\1``) are required in CMake code to get a backslash through argument parsing. +.. _`Regex Specification`: + Regex Specification """""""""""""""""""