The following issue has been SUBMITTED. ====================================================================== http://public.kitware.com/Bug/view.php?id=11370 ====================================================================== Reported By: Dmitry Kuzmenko Assigned To: ====================================================================== Project: CMake Issue ID: 11370 Category: CMake Reproducibility: always Severity: minor Priority: normal Status: new ====================================================================== Date Submitted: 2010-10-27 08:06 EDT Last Modified: 2010-10-27 08:06 EDT ====================================================================== Summary: There is no way to specify ] in [ ] list in regular expressions Description: I've tried to compile regular expression matches any string, ends with set of symbols, including right square bracket (']', '}' and ')', for example). I've found no way to do that simple thing.
If I specify ".*[\]})]" cmake prints error: Syntax error in cmake code at /home/dimm/test/test.cmake:3 when parsing string .*[\]})] Invalid escape sequence \] If I use ".*[\\]})]" it thinks I want to match a string ends with "\})]" sequence. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2010-10-27 08:06 Dmitry KuzmenkoNew Issue ====================================================================== _______________________________________________ cmake-developers mailing list cmake-developers@cmake.org http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers