How can i write some of ereg replace functions to do the following:
I want to replace the text between # # with nothing or space.
Hello, Something like this might work...
$var = ereg_replace("#([[:alnum:]]+)#", "");
$var = ereg_replace("#([[:alnum:]]+)#", " ", $buffer);
This one works with #blablabla# but not with #bla bla bla# ?
Hello, Try this...
$var = ereg_replace("#([[:alnum:] -_.,!\?\$\%\&()]+)#", " ", $buffer);