vile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vile] issue with regular expressions


From: Thomas Dickey
Subject: Re: [vile] issue with regular expressions
Date: Tue, 5 Dec 2006 05:58:11 -0500 (EST)

On Mon, 4 Dec 2006, Paul Fox wrote:

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.

yes - I ran into it that way: adding an expression that can replace
screen_to_bname().

So I won't add _another_ mode to preserve this one (thanks)

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




reply via email to

[Prev in Thread] Current Thread [Next in Thread]