Replace current regex engine with something more modern / capable
When writing CMake scripts using regex one has to read the CMake regex documentation and / or use cmake-gui
's Regular Expressions Explorer.
The CMake regex engine is limited / greedy and one has to go through more pain than usual when using regular expressions in other languages like C++11, Javascript, Python etc.
CMake requires a C++11 compiler, which does come with regex support.
Since C++'s regex is slow, one could use the google/re2 regex library. It's written in C++11, has a BSD license and it's fast (see the numbers in p1433r0 paper).
This would require quite some changes, would need to have a policy in place, but would make the lives of CMake users way more better.