On 9/26/2012 10:45 AM, Alexandre Boyer wrote:
Hi all,

Me happy :-D

It works as expected for simple rules.

For example, to get rid off my problem with youtube links I had this simple rule:

    uri_detail   Z_URIDETAIL_UTUBE_SPOOF   raw !~ /youtube\./ text =~
    /(https?://)?(www\.)?youtube\./ type =~ /^a$/
    score        Z_URIDETAIL_UTUBE_SPOOF   10.0


The alternatives on the text regexp are irrelevant. An equivalent simpler regexp would be:

text =~ /youtube\./

Any optional text at the beginning or end of a (non-anchored) regexp should be left off unless you are trying to capture it for later use.

--
Bowie

Reply via email to