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