Possible Duplicates:
Changing ereg_replace to equivalent preg_replace
Converting ereg expressions to preg
Can anyone show me the equivalent of :
ereg_replace("\n#[^\n]*\n", "\n", $sql)
in preg_replace
Thanks
Possible Duplicates:
Changing ereg_replace to equivalent preg_replace
Converting ereg expressions to preg
Can anyone show me the equivalent of :
ereg_replace("\n#[^\n]*\n", "\n", $sql)
in preg_replace
Thanks
All you need in this case is delimiters (here
/
):Also read about the difference of PCRE from POSIX.