Print

Print


Robert Sanderson wrote:

> If we can have **, then this would imply, incorrectly, ?? for zero or one
> words. BUT ?? is meaningful as characters (up to two characters)
>
> Also, is '***foobar':
>
> 1.  '(**)(*)foobar' which would match 'fred bertfoobar'
> 2.  '(*)(**)foobar' which would match 'fredbert foobar' but not the above
>
> And if one, how do you express the other?
>
> I'm sticking by '|' personally.

Well even though I don't buy either example (the "?" inference isn't necessary,
and  '(*)(**)foobar' would indeed match 'fred bertfoobar' -- the first * would
match the string 'fred bert') rather than debate this I'll go along with |, since I
suppose just the fact that we're having this discussion means that ** is probably
not a good idea.

--Ray