> On Apr 7, 2018, at 1:23 AM, J Doe <gene...@nativemethods.com> wrote:
> 
> I did some Googling for doing PCRE to POSIX regular expressions and updated 
> the string:
> 
>    
> /^(Received:\sfrom)[^;]+(;\s[A-Z]{1}[a-z]{2,3},)\s+([[:digit:]]{1,2}[^\n]+)/ 
> REPLACE $1 [127.0.0.1] (localhost [127.0.0.1]) by myserver.com$2 $3
> 
> … and it works!

It can't, the above is still PCRE, "\s" for whitespace is PCRE, not "regexp".  
Perhaps that's no the string you're using.

My advice is to ditch regexp and use PCRE.  Install the package that adds PCRE 
support.

-- 
        Viktor.

Reply via email to