$message = preg_replace("#(http://(www.)?youtube.com)?/(v/|watch\?v\=)([-|~_0-9A-Za-z]+)&?.*?#i", "", $message);
YouTube 링크가 다음과 같은 경우 정상적으로 작동합니다.
그러나 Youtube 링크가 다음과 같으면 문제가있는 것입니다.
http://www.youtube.com/watch?v= 9DhSwsbKJQ4 & feature = topvideos_music
결과는 iframe 뒤에 iframe과 텍스트
feature = topvideos_music
입니다. Youtube 링크에서&
이후의 모든 항목을 제거하는 방법이 있나요?