$regexStart = '[b]';
$regexEnd = '[\/b]';
$htmlStart = '';
$htmlEnd = '';
$changeStart = ereg_replace($regexStart, $htmlStart, $original_string);
$changeEnd = ereg_replace($regexEnd, $htmlEnd, $changeStart);
$new_string = $changeEnd;
Now, is there anyway to do above replacement in 1 go? as i have about 10 different ereg_replace() going on, and it gets bit messy to write them all in a sequence.
please let me know if i can do this with someother way than doing ereg_replace about 10 times!!!
thanks,
Daarius ...