I am trying to capture uppercase letters from several words and wrap them in span tags. I use preg_replace to extract and wrap, but it doesn’t output anything.
preg_replace("/[AZ]/", "<span class=\"initial\">$1</span>", $str)
php regex html-parsing preg-replace
Polsonby Aug 05 '08 at 0:35 2008-08-05 00:35
source share