$val = preg_replace("/_BBS_(.+?)_/", "aaaaa($1)", $val);