<?php $string = ' <foo>ciao</foo> <i>ex</i> <asd>boh</asd> <i>ex </i> '; $string = preg_replace('#<i>(.+)([\s]+)</i>#', '<i>\1 :)</i>', $string); echo $string;
You have javascript disabled. You will not be able to edit any code.