$str = "<img class="face" src="xxxxx"><img src="xxxx"><img class="face" src="xxxxx"><img src="xxxx">";
< hr >
There may be other characters in ;
wants to use the rule to replace the picture except class that is not face with [picture]
and input the picture of class= "face"
as is;
is not very regular, but I hope someone can help write one!
if the string is:
$str = "Hello, xxx ";
replace with output:
Hello, xxx [picture]