Possibly being pedantic, but ? is more "1 or 0" - it will match if it's
there, but not fussed if it isn't.
"0 or 1" would be the lazy optional ?? which will only match if it has to,
but wont if it can avoid it.


On Jan 23, 2008 4:54 PM, Ian Skinner <[EMAIL PROTECTED]> wrote:

> Adrian Lynch wrote:
> > Sorry, my bad. I was too quick off with the answer. It's ? to match zero
> or
> > one.
> >
> > Adrian
> *DOH!*
>
> Of course it is ?.  My brain just did no go there, for some reason I
> just did not make the equation of 'optional' as the same as '{0,1}'.
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: http://www.houseoffusion.com/groups/RegEx/message.cfm/messageid:1120
Subscription: http://www.houseoffusion.com/groups/RegEx/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.21

Reply via email to