Hello, everybody!

I've just tried to compile regular expression matches any string, ends with 
set of symbols, including right square bracket. How can I do that?

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.

What is the proper way to do something like this?

Dmitry.
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to