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

Reply via email to