Re: help with sed-friendly regex with negative look-ahead syntax for sendmail

"[email protected] [sed-users]" <[email protected]> 02 Mar 2017 08:10:03 +0000
Newsgroups gmane.editors.sed.user
Message-ID <[email protected]>
 That is because you are using the GNU sed's enhanced syntax us\|info\|....
 which "sendmail" will not like.
 

 You'll have to break it up piece by piece, like as,
 

 /[a-zA-Z_0-9.-]\{1,\}<@[a-zA-Z_0-9-]\..\{1,\}[a-zA-Z_0-9.-]\.us/bOK
 /[a-zA-Z_0-9.-]\{1,\}<@[a-zA-Z_0-9-]\..\{1,\}[a-zA-Z_0-9.-]\.info/bOK
 ....
 

 d
 :OK
 # do whatever you wanted to do with the .us|.info|.... mails here
 

---In [email protected], <rkudyba@...> wrote :

 Hm no matter what I try sendmail replies with: "
 /etc/mail/sendmail.cf: line 200: unknown configuration line "/[a-zA-Z_0-9.-]\{1,\}<@[a-zA-Z_0-9-]\..\{1,\}[a-zA-Z_0-9.-]\.(us\|info\|to\|br\|bid\|cn\|ru\)/{"
 Perhaps it's not exactly sed syntax for sendmail?
 
 
 [Non-text portions of this message have been removed]

  


[Non-text portions of this message have been removed]