On Wed, Sep 26, 2007 at 04:25:12PM -0400, Jay Gagnon wrote: > On 9/26/07, Garrison Hoffman <[EMAIL PROTECTED]> wrote: > > > > Sean Dague wrote: > > > > > Yep, match on List-Id:.*mhvlug.mhvlug.org > > > > > > I won't guaruntee that the text name for the list won't change, but the > > > rest of it won't. > > > > I'm not certain if regex specificity is an occupational hazard or a > > personality disorder; I guess I'll live with the greedy match. > > > I've worked with regular expressions just enough to not understand something > here. You say you'll live with the greedy match, which implies you want to > be able to do better, but that looks like a pretty simple regex to me, so > I'm not sure what about it isn't up to snuff. Also, it was my understanding > that "greedy" when applied to regular expressions meant it matched as much > of the string as possible, as opposed to as little. What about the given > regex forces it to be greedy?
.* Typically if you are trying to build efficient regex you stay away from that like you would from a pack of rabid wolves. By the context of the previous email Garrison was using the entire: List-Id: Discussion of some long sentence I wrote <mhvlug.mhvlug.org> For his match. Much more efficient, but prone to breaking as I wasn't happy with the header: Reply-To: Discussion of some long sentence I wrote <[email protected]> in all the emails. :) Guess it was just my aesthetics, but it did break some folks that were building filters early (sorry about that folks). The greedy regex that I supplied casts a wide net, but will work. -Sean -- __________________________________________________________________ Sean Dague Mid-Hudson Valley sean at dague dot net Linux Users Group http://dague.net http://mhvlug.org There is no silver bullet. Plus, werewolves make better neighbors than zombies, and they tend to keep the vampire population down. __________________________________________________________________
signature.asc
Description: Digital signature
_______________________________________________ mhvlug mailing list [email protected] http://mhvlug.org/cgi-bin/mailman/listinfo/mhvlug
