[PHP] 정규식으로 태그 추출하기

그누보드 스킨을 수정하다가 생성한 코드
# iframe 태그를 추출한다.
//preg_match_all("/(<(iframe+)[^>]*>)(.*?)(<\/\\2>)/", $wr_content, $matches);
preg_match_all("/(<(iframe+)([^>]*)>)(.*?)(<\/(iframe)>)/", $wr_content, $matches);

if(is_array($matches[3]) == true && count($matches[3]) > 0) {
	// 태그가 있음
} else {
	// 태그가 없음
}

# 추출한 결과를 확인
print_r2($matches);

[SSL] [letsencrypt] [certbot] 와일드카드 인증서 발급하기

1. 환경   ubuntu 20.x  nginx 2. 설치   apt-get install letsencrypt -y  3. 인증서 발급   ; example.com 도메인에 대해 와일드카드 인증서를 발급받는다. certbot certonly --ma...