파싱관련 질문드립니다 채택완료
|
|||||||||||
답변 2개
https://stackoverflow.com/questions/1818422/php-regex-adding-website-url-to-images" href="https://stackoverflow.com/questions/1818422/php-regex-adding-website-url-to-images">https://stackoverflow.com/questions/1818422/php-regex-adding-website-url-to-images
https://stackoverflow.com/questions/10389153/regex-to-change-img-relative-urls-to-absolute" href="https://stackoverflow.com/questions/10389153/regex-to-change-img-relative-urls-to-absolute">https://stackoverflow.com/questions/10389153/regex-to-change-img-relative-urls-to-absolute
이 두가지 링크 참고하셔서 만들어보시면 어떨지요?
정규식으로 해결한건 아니고 HTML 파싱에 가깝다고 보시면 될 것 같습니다.
문의하신 내용에 관해서는 img 태그 내부 요소가 순서 없이 섞여있을 수 있기 때문에 정규식으로 해결하기보단 위 링크와 같은 방법이 좀 더 효율적이지 않을까 하는 의견입니다~
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인