* Noel Jones wrote :
> On 4/27/2011 7:23 AM, Troy Piggins wrote:
> >* Noel Jones wrote :
> >>On 4/27/2011 6:17 AM, Troy Piggins wrote:
<snip />
> >>regexp and pcre compatible expression:
> >>
> >>/^Subject: +[^[:space:]]{60}/ REJECT no spaces
> >
> >Thanks mate. That works beautifully. One minor improvement. I
> >think your quantifier there matches /exactly/ 60 non whitespaces.
>
> Yes, intentionally. Since the expression doesn't check for anything
> after the {N} non-space characters, it doesn't matter what comes
> after it.
>
> >I
> >added a comma after it to specify at least instead.
>
> Unnecessary unless you're looking for additional matches after the
> non-space characters. General rule of thumb is don't waste
> resources trying to match things that don't matter.
Gotchya. THanks for the clarification.
--
Troy Piggins