I gang

RegEx rules for SpamAssasin

After a regular expression creation to use as rules within SpamAssassin.

For example (classic Viagra and other meds spam that is coming through these days) is in HTML and along the following lines:

V / a g r a $ 3 , 3 l

S o m &

X & n a x

M e r / d i a

V a l / u m $ l , 2 1

C / a l i s $ 3 , 7 5

A m b / e n

V / a g r a $ 3 , 3 l

S o m &

X & n a x

M e r / d i a

V a l / u m $ l , 2 1

C / a l i s $ 3 , 7 5

A m b / e n

I need a regular expression that I can load under __Viag## counting abilities, where I start each catch/count expression with the first letter of the medication in question, it then has a-z and &/$ (any others you can think of) character watches in the middle and then an ending letter.

So, if the following came in:

A m b / e n

an expression:

rawbody __Viag01 m'A [a-z or &/$] [a-z or &/$][a-z or &/$][a-z or &/$] n'i

would count as a hit for the above (note the space between each of the letter/character bits).

Likewise, if the following was in the same email:

M e r / d i a

Another expression:

rawbody __Viag02 m'A [a-z or &/$] [a-z or &/$][a-z or &/$][a-z or &/$] [a-z or &/$] a'i

would count as a hit for the above (note the space between each of the letter/character bits again).

I would extend and reduce the number of usages of the [a-z or &/$] end code to match possible different combinations of the medications they are trying to sell with additional rawbody __Viag## usages.

Then, with the regular expression sorted and matching those, I will then use the following type of scoring function as an example:

meta Viagra_01 (( __Viag01 + __Viag02 + __Viag03) > 2)

score Viagra_01 10

If anyone can produce such a regex to cover this that I can then deploy within my SA rules, be appreciated, as this is getting to be a right pain.. Really need something over the next 24 hours or so for this please, which as regex is most likely nothing to some of you guys, you could knock it out in half an hour - let me know please.

Mac

Will pick up any quotes for this tomorrow.

Færdigheder: Perl

Se mere: the example of cover letter, regular expression or example, regular expression no, regular expression in c, regular expression function, regular expression example, regular expression code, regular expression c, regular expression a, regular expression 0, regex is, regex in c, regex example, regex c, o 1 space, mac deploy, letter example, it cover letter example, hours cover, example of regular expression, example of cover letter, example of a cover letter, example letter, example for cover letter, example cover letter

Om arbejdsgiveren:
( 3 bedømmelser ) London, United Kingdom

Projekt-ID: #55486

2 freelancere byder i gennemsnit $68 for dette job

bsoist

Please see PMB for details.

$100 USD på 1 dag
(6 bedømmelser)
4.8
gasparch

Easy to do. please see PM. Gaspar

$35 USD på 1 dag
(13 bedømmelser)
4.7