thomas wrote:
>
> I noticed (have forgotten if this was mentioned before) that OR'd
> expressions such as
>
> \(th\|that\|this\)
>
> will only match "th". That's been that way "forever", though when
> investigating, I thought it was my bug. I've changed it in my current
> patch to a greedy match, so any of the alternatives above will work.
> Is there any reason to keep the first-match-only behavior?
no. that's definitely a bug. i assume no one's reported it because
it's the kind of pattern more likely to appear in a script than to be
typed by hand.