<?php $a = "ab"; echo preg_replace("/(a)|(b)/", "(+${2}+)(-$1-)", $a);
You have javascript disabled. You will not be able to edit any code.