IP Stripping (replace)

Ralf Hildebrandt Ralf.Hildebrandt at charite.de
Mo Jul 18 12:53:41 CEST 2016


* Daniel <daniel at ist-immer-online.de>:
> Hi Max,
> 
> sagte doch ist ned so meins, ich kann damit absolut nix anfangen. Gibt nur Errors da der mit den replace und so nichts anfangen kann.
> 
> /^Received: from [.*?] ([-.[:alnum:]]* [.*?])(s+)(Authenticated sender: ([[:alnum:]]+@[.[:alnum:]]+))(s+)by mail.meinedomain.com (Postfix) with (E?SMTPS?A?) id ([A-Fd]+)(s+)(.*)?/REPLACE Received: from [127.0.0.1] (localhost [127.0.0.1])${1}(Authenticated sender: authenticated)${3}by mail.meinedomain.com (Postfix) with ${4} id ${5}${6}${7}
> 
>     Errors are explained from left to right. Move the mouse cursor over them to see the error highlighted in your pattern
>     R-modifier does not exist in PCRE (PHP) (or is not yet supported by regex101.com)
>     E-modifier does not exist in PCRE (PHP) (or is not yet supported by regex101.com)
>     P-modifier does not exist in PCRE (PHP) (or is not yet supported by regex101.com)
>     L-modifier does not exist in PCRE (PHP) (or is not yet supported by regex101.com)
> ... usw.

Space zwischen "?/" und "REPLACE" fehlt....

-- 
Ralf Hildebrandt
  Geschäftsbereich IT | Abteilung Netzwerk
  Charité - Universitätsmedizin Berlin
  Campus Benjamin Franklin
  Hindenburgdamm 30 | D-12203 Berlin
  Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
  ralf.hildebrandt at charite.de | http://www.charite.de
	    



Mehr Informationen über die Mailingliste Postfixbuch-users