want to replace
in Quan Lian good real estate Wang Yongping, director of commercial real estate research of the Chamber of Commerce, there are many commercial facilities and great pressure of competition, so it is necessary to use commerce as the engine and" commerce + "to build a complex. "past shopping < span style=" color: rgb (0,17680); "> < span style=" color: rgb (0,17680); "> Center is all pure commerce, which now needs to be constantly superimposed on the basis of commerce, such as business + medical care, business + culture, business + tourism, and so on. Too simple business format has been unable to adapt to changes in consumer demand, commercial real estate from the past re-development to re-operation, heavy content. " Wang Yongping said.
< span style= "color: rgb (0,176,80);" > (. *? ) , due to the emergence of multi-layer nesting, I want a regular expression to remove the multi-layer < span style= "color: rgb (0,176,80);" > and , but keep the value in the middle of
. This is my way of writing, but it doesn"t work at all.
preg_replace("/<span[\s\S]*?style=\"color: rgb(0, 176, 80);\">(.*?)<\/span>/si","\$1",$obj->info);