[CMake] Regex Alternation

Allen Barnett allen at transpireinc.com
Tue Jul 26 10:39:29 EDT 2011


Thanks!
On Tue, 2011-07-26 at 10:31 -0400, David Cole wrote:
> "(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.


-- 
Allen Barnett
Transpire, Inc
E-Mail: allen at transpireinc.com



More information about the CMake mailing list