<?php echo preg_replace('/.*?\b(dog)\b.*?(?!(dog)|$)/', '<$0>', 'where my dog is now?');
You have javascript disabled. You will not be able to edit any code.