Hello all,
I'm trying to match ordinal numbers (1st, 2nd, 3rd, 4th etc) like this.

xpr::as_xpr ("Some Text") 
    >> xpr::repeat<1, 2>(_d) 
    >> ("st"|"nd"|"rd"|"th") ;

Compilation fails at 3rd line with the following error

error C2296: '|' : illegal, left operand has type 'const char [3]' ;

what am i missing ? did I give the construct correctly ?

Thanks in advance,
Surya