[Top][All Lists]

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

Re: [vile] issue with regular expressions

From: Paul Fox
Subject: Re: [vile] issue with regular expressions
Date: Mon, 04 Dec 2006 19:55:11 -0500

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.

 paul fox, address@hidden (arlington, ma, where it's 26.1 degrees)

reply via email to

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