$string = preg_replace("_\[soundcloud\]/http:\/\/soundcloud.com\/(.*)/\[/soundcloud\]_is", "<iframe width=\"100%\" height=\"166\" scrolling=\"no\" frameborder=\"no\" src=\"https://w.soundcloud.com/player/?url=\$0\"></iframe>", $string);
안녕하세요 다시 한번 Stackoverflow!Soundcloud PHP ubb 파서
나는 위의 preg_replace
를 사용하여
<iframe width="100%" height="166" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url= (url) "></iframe>
에 [soundcloud](url)[/soundcloud]
를 분석하여, 사운드 클라우드 링크를 지원하기 위해 내 UBB 파서 싶지만,이 작동하지 않습니다.
내 정규 표현식에 문제가있는 사람을 도와 줄 수 있습니까?
미리 감사드립니다.
이 (~ \ [사운드 클라우드] https://soundcloud.com'그것을 해결 : 교체 문자열을