MantisBT - CMake |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0013792 | CMake | CMake | public | 2012-12-13 16:26 | 2016-06-10 14:31 |
|
Reporter | mwoehlke | |
Assigned To | Kitware Robot | |
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | moved | |
Platform | | OS | | OS Version | |
Product Version | CMake 2.8.10 | |
Target Version | | Fixed in Version | | |
|
Summary | 0013792: REGEX REPLACE fails if () capture is empty |
Description | string(REGEX REPLACE) fails for certain patterns with 'matched an empty string' error if a capture grood is empty, even if the full match is non-empty. |
Steps To Reproduce | set(input foo)
string(REGEX REPLACE "^([^.]*)(\\..*)?$" "\\1" output ${input}) |
Additional Information | CMake is correctly matching the regular expression (as can be seen by examining the captures), and the overall pattern (which is the old text to be replaced) is non-empty, so there should be no problem. (Even more interestingly, while the above pattern triggers the problem, other patterns which one might expect to tickle the same glitch do not.) |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2012-12-13 16:26 | mwoehlke | New Issue | |
2016-06-10 14:28 | Kitware Robot | Note Added: 0042171 | |
2016-06-10 14:28 | Kitware Robot | Status | new => resolved |
2016-06-10 14:28 | Kitware Robot | Resolution | open => moved |
2016-06-10 14:28 | Kitware Robot | Assigned To | => Kitware Robot |
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |