Loading ...
Sorry, an error occurred while loading the content.

Re: postfix REGEX bug ???

Expand Messages
  • Noel Jones
    ... Dang! What I *meant* was /(^| .)google .com$/ Which has the minor defect of leaking .google.com -- Noel Jones
    Message 1 of 7 , Mar 29, 2012
    • 0 Attachment
      On 3/29/2012 1:15 PM, Wietse Venema wrote:
      > Noel Jones:
      >> On 3/29/2012 5:48 AM, Wietse Venema wrote:
      >>> You mean:
      >>>
      >>> /^google\.com$/
      >>> /^mail\.ru$/
      >>
      >> The expression must also match subdomains.
      >>
      >> /[^.]google\.com$/
      >> /[^.]mail\.ru$/
      >
      > To match zero or more labels before the domain name:
      >
      > /^([^.]+\.)*google\.com$/
      > /^([^.]+\.)*mail\.ru$/
      >
      > This cannot be simplified further.
      >
      > Wietse

      Dang! What I *meant* was
      /(^|\.)google\.com$/

      Which has the minor defect of leaking ".google.com"



      -- Noel Jones
    Your message has been successfully submitted and would be delivered to recipients shortly.