'; $preg = '/\[blipfm http:\/\/blip\.fm\/profile\/\w+\/blip\/(\d+)\]/i'; $preg2 = '/\[blipfm (\d+)\]/i'; preg_match_all($preg, $tc, $arr, PREG_SET_ORDER); preg_match_all($preg2, $tc, $arr2, PREG_SET_ORDER); if(is_array($arr)){ foreach($arr as $a){ $tc = str_replace($a[0],str_replace('###BLIP###',$a[1],$blip),$tc); } } if(is_array($arr2)){ foreach($arr2 as $a){ $tc = str_replace($a[0],str_replace('###BLIP###',$a[1],$blip),$tc); } } return $tc; } add_filter('the_content','blipfm_emblend'); ?>