
※ 광고성글은 사전 동의 없이 삭제 합니다.
![]() |
| 번호 : 558 번글 조회 : 1547 회 |
| 1 | $text = preg_replace('/\r\n|\r|\n/','',$text); |
| 123 | $text = str_replace(array("\r\n","\r","\n"),'',$text);또는$text = strtr($text,array("\r\n"=>'',"\r"=>'',"\n"=>'')); |
| 1 | $content = preg_replace("(\<(/?[^\>]+)\>)", "", $content); |
| 12 | $content = preg_replace("!<textarea(.*?)>!is","[textarea]",$content);$content = preg_replace("!</textarea(.*?)>!is","[/textarea]",$content); |
| 1 | $str=preg_replace("!<script(.*?)<\ script="">!is","",$str); |
| 1 | $str=preg_replace("!<iframe(.*?)<\ iframe="">!is","",$str); |
| 1 | $str=preg_replace("!<meta(.*?)>!is","",$str); |
| 1 | $str=preg_replace("!<style(.*?)<\ style="">!is","",$str); |
| 1 | $str=str_replace(" "," ",$str); |
| 1 | $str=preg_replace("/\s{2,}/"," ",$str); |
| 12 | $str=preg_replace("/ style=([^\"']+) /"," ",$str); // style=border:0 따옴표가 없을때$str=preg_replace("/ style=(\"|')?([^\"']+)(\"|')?/","",$str); // style="border:0" 따옴표 있을때 |
| 12 | $str=preg_replace("/ width=(\"|')?\d+(\"|')?/","",$str);$str=preg_replace("/ height=(\"|')?\d+(\"|')?/","",$str); |
| 12 | preg_match("/<img[^>]*src=[\"']?([^>\"']+)[\"']?[^>]*>/i",$str,$result);preg_match_all("/<img[^>]*src=[\"']?([^>\"']+)[\"']?[^>]*>/i",$str,$result); |
| 1 | $string = preg_replace("/[ #\&\+\-%@=\/\\\:;,\.'\"\^`~\_|\!\?\*$#<>()\[\]\{\}]/i", "", $string); |
| 12 | $string = preg_replace('/ /', '', $string);$string = preg_replace("/\s+/", "", $string); |
| 1 | $string = preg_replace("/s(w+s)1/i", "$1", $string); |
| 1 | $string = preg_replace("/.+/i", ".", $string); |
| 1 | $string = preg_replace("/[^A-Za-z]/", "", $string); |
| 1 | $string = preg_replace("/[^A-Za-z|\x20]/", "", $string); |
| 1 | $string = preg_replace("/[^\x20-\x7e]/", "", $string); |
| 12 | preg_match_all("/<img[^>]*src=['\"]?([^>'\"]+)['\"]?[^>]*>/", $img, $matchs);print_r($matchs);</img[^></img[^></img[^></style(.*?)<\></meta(.*?)></iframe(.*?)<\></script(.*?)<\> |
이 전 글 |
유니코드, 문자열 변환하기 |
다 음 글 |
컴퓨터 부팅 비프음 |
| [관련글] | 없음 | 작성일시 : 2021-08-09 16:00:36 |
![]() |
Copyright(c) 2003 xirom all right reserved vol.3 Contact xirom@xirom.net form more information |