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

Re: Check This Out! Just got a new email at THEMAIL.COM



On Thu, Sep 28, 2000 at 11:48:06AM -0500, Dave Sherohman wrote:
> On Thu, Sep 28, 2000 at 02:45:35PM +0000, Pollywog wrote:
> > I want to remove all messages that contain three or more "!" in the subject
> > but I can't think of a way to do it while allowing two "!"s.  Anyone have a
> > regex for this?
> 
> .*!.*!.*!.* doesn't work?

well .* means anything, including !, so this involves backtracking,
perhaps the following is more efficient:

   [^!]*\![^!]*\![^!]*\!.*


-- 
groetjes, carel



Reply to: