> in vs.net 2003, i want to use colo(u{1}r|r) to search colour or color,
> but it only matchs colour!
>
> 1) if i use colo(u{1}r|a), it will match colour or coloua.
No, actually it will match "coloa", not "coloua".
> 2) if i use colo(ur|r), it will match color or colour.
>
> it seems that something different between only literal expression and
> expression with meta-charactor!
No. "u{1}" means 'one and only one u" - it's exactly the same as "u".
What you really want to match is either
coloru{0,1}r
or just
colou?r

Signature
<http://www.midnightbeach.com>
chenchang - 30 Dec 2005 09:00 GMT
coloru{0,1} and colou?r are both useless in the vs.net ide
> > in vs.net 2003, i want to use colo(u{1}r|r) to search colour or color,
> > but it only matchs colour!
[quoted text clipped - 17 lines]
>
> colou?r
Jon Shemitz - 30 Dec 2005 19:57 GMT
> coloru{0,1} and colou?r are both useless in the vs.net ide
Yes, I noticed after I started checking the regex that this was the
ide group, and that you said "in vs.net 2003" - but I wasn't sure if
you really meant IDE regexs, or were just being lame. (One sees so
much of the latter.)
Sorry, can't help you with IDE regexs. I do wonder why they don't just
use the real, FCL Regex ....
> > > in vs.net 2003, i want to use colo(u{1}r|r) to search colour or color,
> > > but it only matchs colour!
[quoted text clipped - 17 lines]
> >
> > colou?r

Signature
<http://www.midnightbeach.com>