On Thu, 14 Jun 2007 18:49:46 +0200
OBSD <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> thanks for all the suggestions.
> With this it works:
> cat mail.txt | egrep "[EMAIL PROTECTED]" | egrep
> "\.[a-zA-Z]{2,4}$"
>
> It is probably possible to avoid the last egrep but I have not find
> out how.
>
Have a look at p5-Email-Address, it provides a regular expression for
parsing email addresses, you should be able to use it in place of egrep,
or use its regular expression with egrep with some modifications.
p5-Regexp-Common provides other standard regexpes for URLs and the like.