나는 php에서 수행 할 진술 대체를 가지고 있습니다 (str_replace
또는 다른 것을 사용). str_replace except/else 두 태그 사이
"the sun is yellow when the <wrong>red sun is not yellow</wrong>"
"the apple is yellow when the <wrong>red sun is not yellow</wrong>"
그래서 나는 두 가지 특정 태그 (<wrong
및 </wrong>
) 사이를 제외하고, 단어를 교체 할 필요가 나는이 문장이있다. str_replace
또는 정규식을 사용하여이를 수행하는 방법?
좀 더 힘들지 않습니까? 나는 이미 많은 시간 동안 수색했다 ... 아무 단서 ... 어떤 생각? 솔루션이나 단서 또는
항상 한''부분이 있습니까? –