<?php $content = '[title type="1"]Test[/title]'; $pattern = '#\[(\w+)([^\]]+)](\w+).*#i'; echo preg_replace($pattern, '[new_title$2 title="$3"]', $content);
You have javascript disabled. You will not be able to edit any code.