--On 30 August 2006 18:58 +0200 Fibre Optic <fibre_optic at go2.pl> wrote: > My understanding is: if i enter "^[^@]*@([^@]+)@" it should work...but it > does NOT :-( Hard coded "^[^@]*@([^@]+)@" works good. What is going on? fgets inserts a new line at the end the of the string. Alex