[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Frage an die Procmail-Experten...



On 2004.02.14 18:16, Bertram Scharpf wrote:
Hallo Andreas,

Am Samstag, 14. Feb 2004, 13:49:43 +0100 schrieb Andreas Schmidt:
> Hallo,
>
> kann man eigentlich Variablen auch in den regular expressions
> verwenden? Bin dabei, Spam nach URLs zu filtern. Zur Zeit sieht das

> noch so aus:
>

> [...]

> TLD="(com|co\.uk|us|biz|net|info|yahoo\.com|ca|ws|t[vw])($|.)"
>
> :0B
> * http://.*(fallow|firstrate.*|flabby|forall.*|forever.*|fuchsia) $TLD\..+
> $URL
>
> Das funktioniert aber nicht; wohl, weil "$" in reg-exes ein
Zeilenende
> markiert. Wie kann man also so etwas realisieren?

ungetestet:

* $http://.*(fallow|firstrate.*|flabby|forall.*|forever.*|fuchsia) $TLD\..+


Danke, so funktioniert es!
Schoenen Abend noch,

Andreas



Reply to: