<?php $re = '/\\\\o\{([^}]+)\}/m'; $str = 'hello \\o{test} how are you?'; $subst = '<span>$1</span>'; echo preg_replace($re, $subst, $str); ?>
You have javascript disabled. You will not be able to edit any code.