I must admit that I'm glad to hear this wasn't a pebcak error.

Peter Hinman
International Bridge / ParcelPool.com

On 6/21/2013 5:36 AM, Thomas Eckardt wrote:
> I confirm that this is a small BUG in the weighting engine. The regex
> matches, but the weight is not found, if the matching string result
> contains multiple lines.
> Thank you Peter for the excelent analyzing.
>
> The next version will fix this.
>
> Thomas
>
>
>
>
> Von:    Peter Hinman <peter.hin...@myib.com>
> An:     ASSP development mailing list <assp-test@lists.sourceforge.net>,
> Datum:  20.06.2013 20:21
> Betreff:        [Assp-test] Regex single line mode
>
>
>
> Running 2.3.4 (13172) (previously 13157)
>
> I'm trying to build a regular expression to catch a lot of the stock
> spam that is coming through.
> I've tried my regex in my bombRe and bombDataRe and blackRe files.
>
> The body of the spam message lists the stock symbol three times through
> the message body.  My expression looks like this:
> \bh[ _-]?a[ _-]?i[ _-]?r\b.+?\bh[ _-]?a[ _-]?i[ _-]?r\b.+?\bh[ _-]?a[
> _-]?i[ _-]?r\b=>30
>
> What's interesting is that while ASSP matches on this regex, it ignores
> the weighted value at the end.
>
> If I shorten the regex so that the match happens on just a single line
> of the message body, then the weighted value is correctly applied.
> \bh[ _-]?a[ _-]?i[ _-]?r\b=>30
>
> Is it possible to get the weighted value to work on multi line matches?
>
> Thanks!
>
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
>
>
> _______________________________________________
> Assp-test mailing list
> Assp-test@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/assp-test

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Assp-test mailing list
Assp-test@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-test

Reply via email to