On 5/28/2014 11:14 AM, Martin Gregorie wrote:
On Wed, 2014-05-28 at 10:19 -0300, Rejaine Monteiro wrote:
So, I doing this:
header __ORCAMENTO_H Subject =~ /or.*amento|planilha|urgente/i
body __ORCAMENTO_B /or.*amento|planilha|urgente/i
uri __ORCAMENTO_U
/orcamento\.php|/orcamento\.pdf|planilha\.php|planilha\.pdf)
meta ORCAMENTO ( __JAMEF_ORCAMENTO_H || __JAMEF_ORCAMENTO_B ) &&
__JAMEF_ORCAMENTO_U
score ORCAMENTO 5.5
describe ORCAMENTO Fala sobre orçamentos urgentes e contem links
supostamente para arquivos PDF
Your header and body lack grouping brackets round the list of alternates
- you should write /(alt1|alt2|alt3|alt4)/ NOT /alt1|alt2|alt3|alt4/
The grouping is not necessary if the entire expression consists of a
simple list of alternates. And if you do use the grouping, it should be
/(?:alt1|alt2|alt3|alt4)/ to avoid unnecessary capturing of the
results. (This is not a big deal, but there is a minor performance hit
associated with the capture.)
--
Bowie