Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- bootstrap modal
- PHP 구글 OTP 인증
- 구글 OTP 인증
- 파라미터 & 오류
- php 배열제거
- PHP 구글 OTP 연동
- 비밀번호검증정규식
- 자바스크립트비밀번호검증
- bootstrap
- httpd.conf 보안 설정
- mariadb upgrade
- javascript
- modsecurity 설치
- 숫자 3자리(천단위) 마다 콤마 찍기
- sha-2 root
- apache mod rewrite
- 비밀번호정규식
- (using password: YES)" when trying to connect
- PHP 정규식 예제
- group_concat 구분자
- 우분투 mysql 비밀번호 없이 로그인 될때
- 윈도우 환경 아파치 mod_security2 설치
- mod_security2 설치
- 윈도우 mod_security2
- 아파치 웹 서버의 정보 숨기기
- mysqldump: Got error: 1045
- apple push notification service (apns) is changing
- usb efi 시스템 파티션 삭제
- php 이미지 url 검증 함수
- html pdf 변환
Archives
- Today
- Total
투덜이 개발자
HTML 페이지에서 주석을 제거하는 정규식(PHP) 본문
반응형
/* */주석
$str = preg_replace('/\/\*(.*?)\*\//is', '', $str);
<!-- -->주석
$str = preg_replace('/<!--(.*?)-->/is', '', $str);
//주석
$str = preg_replace('/\/\/(.*)\n', '', $str);
#주석
$str = preg_replace('/#(.*)\n/', '', $str);
'주석
$str = preg_replace('/\'(.*)\n/', '', $str);
https://openlife.tistory.com/378
HTML 페이지에서 주석을 제거하는 정규식(PHP)
/* */주석 $str = preg_replace('/\/\*(.*?)\*\//is', '', $str); 주석 $str = preg_replace('//is', '', $str); //주석 $str = preg_replace('/\/\/(.*)\n', '', $str); #주석 $str = preg_replace('/#(.*)\n/', '', $str); '주석 $str = preg_replace('/\'(.*)\n/
openlife.tistory.com
반응형
'Program Language > PHP' 카테고리의 다른 글
우분투 composer 설치 (1) | 2024.09.27 |
---|---|
[PHP] 파라미터 & 오류 (0) | 2024.05.27 |
[PHP] 엑셀 셀안에서 줄바꿈 처리 (0) | 2024.05.10 |
PHP 정규식 예제 (0) | 2024.04.16 |
[PHP] 구글 OTP 연동 (0) | 2024.03.20 |