> I'm trying to replace singel line comment with empty string.
>
> tried ereg_replace("//.+\n",'',$string); but this replaces all text after
> //.
>
> anyone now what to do?

 \n is the newline character, making the string apear to be multiple lines
see the thread "[PHP] multi line regular expression?" and see if that
helps you any.

>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Thanks,
  Dean E. Weimer
  http://www.dwiemer.org/
  [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to