diff --git a/Help/command/file.rst b/Help/command/file.rst index f46e55a056cf05dd2018b92dd907b22e932b7ece..d8113ea2c6fb4be093bc7087dce7b25f6bf56867 100644 --- a/Help/command/file.rst +++ b/Help/command/file.rst @@ -116,7 +116,8 @@ Parse a list of ASCII strings from ``<filename>`` and store it in binary while reading unless this option is given. ``REGEX <regex>`` - Consider only strings that match the given regular expression. + Consider only strings that match the given regular expression, + as described under :ref:`string(REGEX) <Regex Specification>`. ``ENCODING <encoding-type>`` .. versionadded:: 3.1 diff --git a/Help/command/install.rst b/Help/command/install.rst index 2259176d746ac454b79d4631ea225c5f39d4cbba..27c04b55a9e6cbeef14286c72ad4797b7c8305a2 100644 --- a/Help/command/install.rst +++ b/Help/command/install.rst @@ -540,7 +540,8 @@ any expression. For example, the code will extract and install header files from a source tree. -Some options may follow a ``PATTERN`` or ``REGEX`` expression and are applied +Some options may follow a ``PATTERN`` or ``REGEX`` expression as described +under :ref:`string(REGEX) <Regex Specification>` and are applied only to files or directories matching them. The ``EXCLUDE`` option will skip the matched file or directory. The ``PERMISSIONS`` option overrides the permissions setting for the matched file or directory. For diff --git a/Help/command/list.rst b/Help/command/list.rst index 7accc5a39e1a839beddd58b9994ad699822b4dd8..f46641f0b6accaa950ad5b1cee18bb9645968f37 100644 --- a/Help/command/list.rst +++ b/Help/command/list.rst @@ -141,8 +141,8 @@ Appends elements to the list. Includes or removes items from the list that match the mode's pattern. In ``REGEX`` mode, items will be matched against the given regular expression. -For more information on regular expressions see also the -:command:`string` command. +For more information on regular expressions look under +:ref:`string(REGEX) <Regex Specification>`. .. _INSERT: diff --git a/Help/manual/cmake-presets.7.rst b/Help/manual/cmake-presets.7.rst index 57c8ccf3d08c562ad5405fae3147e144fb991e76..0bcd6910adb31fb79db7cf409dce3e240f8a06be 100644 --- a/Help/manual/cmake-presets.7.rst +++ b/Help/manual/cmake-presets.7.rst @@ -642,7 +642,8 @@ that may contain the following fields: An optional string specifying a regex for test names. Equivalent to passing ``--tests-regex`` on the command line. This field supports - macro expansion. + macro expansion. CMake regex syntax is described under + :ref:`string(REGEX) <Regex Specification>`. ``label`` diff --git a/Help/manual/ctest.1.rst b/Help/manual/ctest.1.rst index 811997c55488a210ba6f8306a36f6567f3be74dc..72ef2597ad13d9bb73ce61a9b25c8056beed43e9 100644 --- a/Help/manual/ctest.1.rst +++ b/Help/manual/ctest.1.rst @@ -158,7 +158,8 @@ Options See `Show as JSON Object Model`_. ``-L <regex>, --label-regex <regex>`` - Run tests with labels matching regular expression. + Run tests with labels matching regular expression as described under + :ref:`string(REGEX) <Regex Specification>`. This option tells CTest to run only the tests whose labels match the given regular expression. When more than one ``-L`` option is given,