to all guru
i do have these regular expression that remove the bracket content eg:
$string='[mainpage] this is the outpout';
and the output is "this is the outpout" using this
regular expression method
$str ="[mainpage] this is the outpout";
$str = preg_replace('#^\[.*]#is', "\\1", $str);
echo $str // output::this is the outpout;
now when i use another string like :
$str="[mainpage] this is the output[1]";
$str = preg_replace('#^\[.*]#is', "\\1", $str);
echo $str // no output
seems the preg_replace replace all the string inside the bracket
now how can i remove only the first bracket and retaining the rest bracket
Thanks in Advance