On 06/14/2012 04:42 PM, Viktor Dukhovni wrote:
On Thu, Jun 14, 2012 at 04:06:28PM +0200, Frank Bonnet wrote:

This does not work -->   /\@yahoo\.*$/    smtp:[another.smtp.server]
It works, but it is not what you want. :-)

   $ echo lu...@yahoo.com | pcregrep -q '@yahoo\.*$'&&  echo yes || echo "no"
   no

On the other hand:

   $ echo lu...@yahoo.com | pcregrep -q '@yahoo\.'&&  echo yes || echo "no"
   yes

Always take a moment to read and understand your regular expressions.

Yes ... thanks a lot.

Reply via email to