View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013792CMakeCMakepublic2012-12-13 16:262016-06-10 14:31
Reportermwoehlke 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product VersionCMake 2.8.10 
Target VersionFixed in Version 
Summary0013792: REGEX REPLACE fails if () capture is empty
Descriptionstring(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 Reproduceset(input foo)
string(REGEX REPLACE "^([^.]*)(\\..*)?$" "\\1" output ${input})
Additional InformationCMake 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.)
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0042171)
Kitware Robot (administrator)
2016-06-10 14:28

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.

 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


Copyright © 2000 - 2018 MantisBT Team