vile
[Top][All Lists]
Advanced

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

[vile] issue with regular expressions


From: Thomas Dickey
Subject: [vile] issue with regular expressions
Date: Mon, 4 Dec 2006 19:46:25 -0500 (EST)


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?

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




reply via email to

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