Re: catching domain or domain and hostname1998-03-19 23:14:50On Thu, 19 Mar 1998, Timothy J Luoma wrote: Is this a proper regex to catch both any hostname and without any hostname? * ^From:.*@(.*\.)?work\.com How about foo(_at_)free(_dot_)work(_dot_)comp(_dot_)net ? I think I'd restrict the expression to non-whitespace between @ and \. , and add \> to the end, to be more certain. * ^From:.*@([^ ]+\.)?work\.com\> David Hunt
|
|