# CMake regex

**URL:** <https://discourse.cmake.org/t/cmake-regex/3439>\
**Category:** Code\
**Created:** [May 30, 2021, 7:12am UTC](https://discourse.cmake.org/t/cmake-regex/3439 "2021-05-30T07:12:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mscofield0](https://discourse.cmake.org/user_avatar/discourse.cmake.org/mscofield0/32/1413_2.png) [@mscofield0](https://discourse.cmake.org/u/mscofield0)\
**Post date:** [May 30, 2021, 7:12am UTC](https://discourse.cmake.org/t/cmake-regex/3439/1 "2021-05-30T07:12:34Z")

</div>

I was just stunned by the fact CMake does not support non-capture groups. Please add it.

---

<div class="post-metadata">

**Author:** ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)\
**Post date:** [June 1, 2021, 1:38pm UTC](https://discourse.cmake.org/t/cmake-regex/3439/2 "2021-06-01T13:38:29Z")

</div>

CMake’s regular expression engine is _old_. There is discussion [to replace it](https://gitlab.kitware.com/cmake/cmake/-/issues/17686), but it is not easy.
