on 2/12/01 9:16 AM, Richard Livsey at R.Livsey at cache-22.co.uk wrote: > Instead of : > >> $oldemail = "email1 at mydomain.com"; >> $newemail = "email2 at mydomain.com"; > > try > > $oldemail = 'email1 at mydomain.com'; > $newemail = 'email2 at mydomain.com'; > > It may be parsing the string in the regex - ie the '.' Have you tested this? I'd be kind of surprised if the delimiter made a difference later in the script. > > eregi("email1 at mydomain.com", $line, $out) > is different to > eregi('email1 at mydomain.com', $line, $out) > > as these will equate to > eregi("email1 at mydomain[any character]com", $line, $out) // probably not what > you want > eregi('email1 at mydomain.com', $line, $out) // what you want > > Hope thats understandable and helps you out! >