Rob Kudyba rkudyba@yahoo.com [sed-users]
2017-02-23 15:51:31 UTC
So the below regex (the left side in bold) does not seem to work in sendmail's R & K commands. Iâm trying to allow emails from cities and schools that have email addresses that look like:
***@ci.boston.us or ***@aschool.ny.us. It seems that negative look-aheads are not supported. Would anyone have any idea on how to make this sed-friendly syntax? Note that the right side (unbolded) works fine by itself.
(?!.*\@ci\..+?\.us$)(?!.*\@*\..+?\.ny.us$)[a-zA-Z_0-9.-]+<@[a-zA-Z_0-9-]+?\.+[a-zA-Z_0-9.-]+?\.(us|info|to|br|bid|cn|ru)
[Non-text portions of this message have been removed]
***@ci.boston.us or ***@aschool.ny.us. It seems that negative look-aheads are not supported. Would anyone have any idea on how to make this sed-friendly syntax? Note that the right side (unbolded) works fine by itself.
(?!.*\@ci\..+?\.us$)(?!.*\@*\..+?\.ny.us$)[a-zA-Z_0-9.-]+<@[a-zA-Z_0-9-]+?\.+[a-zA-Z_0-9.-]+?\.(us|info|to|br|bid|cn|ru)
[Non-text portions of this message have been removed]