[CMake] Regex Alternation

David Cole david.cole at kitware.com
Tue Jul 26 10:31:41 EDT 2011


"(this|that)" works.


On Tue, Jul 26, 2011 at 10:10 AM, Allen Barnett <allen at transpireinc.com> wrote:
> Hi: I was wondering how the alternation character, |, works in CMake
> regular expressions. To match "this" or "that" in a longer string would
> it be "(this|that)" or "(this)|(that)"? The CMake --help says | is
> supported but header file kwsys/RegularExpression.hxx.in doesn't mention
> it.
> Thanks,
> Allen
> --
> Allen Barnett
> Transpire, Inc
> E-Mail: allen at transpireinc.com
>
> _______________________________________________
> 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
>


More information about the CMake mailing list