세상의 모든 특수문자

클릭하면 자동으로 복사됩니다!

기본 특수문자

« » " " ' ' | / [ ] { } § ¡ ¿ ± × ~ ÷ π ¥ $ ¢ £ ß © ® @ ° · ⦿ ⥿ _ -

화살표

⤿

이모지

이모지 2

🎳 🏂 🌁 🌉 🌋 🌌 🌏 🌑 🌓 🌔 🌕 🌛 🌠 🌰 🍏 🌱 🌼 🌽 🌿 🍄 🍇 🍈 🍌 🍍 🍑 🍒 🍩 🍕 🍖 🍗 🍠 🍤 🍥 🍨 🍪 🍫 🍬 🍭 🍮 🍯 🍷 🍹 🎊 🎋 🎠 🎣 🎭 🎮 🎲 🎴 🎹 🎻 🎼 🎽 🏡 🏮 🐌 🐜 🐝 🐞 🐡 🐢 🐣 🐥 🐩 🐼 🐽 🐾 👅 👓 👖 👚 👛 👝 👤 👪 👰 👹 👺 💌 💕 💖 💞 💠 💥 💧 💫 💬 💮 💯 💲 💳 💴 💵 💸 💾 📁 📂 📃 📄 📅 📆 📇 📈 📉 📊 📋 📌 📍 📎 📏 📐 📑 📒 📓 📔 📕 📙 📚 📛 📜 📞 📟 📤 📥 📦 📧 📨 📪 📰 📹 🔃 🔋 🔌 🔎 🔏 🔐 🔖 🔗 🔘 🔙 🔚 🔛 🔜 🔟 🔠 🔡 🔢 🔣 🔤 🔦 🔧 🔩 🔪 🔮 🔵 🔶 🔷 🔸 🔹 🔼 🔽 😄 😊 😃 😉 😍 😘 😚 😳 😌 😁 😜 😝 😒 😏 😓 😔 😞 😱 😠 😡 😪 😷 👿 👽 💛 💙 💜 💗 💚 💔 💓 💘 🌟 💢 💤 💨 💦 🎶 🎵 🔥 💩 👍 👎 👌 👊 👋 👐 👆 👇 👉 👈 🙌 🙏 👏 💪 🚶 🏃 👫 💃 👯 🙆 🙅 💁 🙇 💏 💑 💆 💇 💅 👦 👧 👩 👨 👶 👵 👴 👱 👲 👳 👷 👮 👼 👸 💂 💀 👣 💋 👄 👂 👀 👃 🌙 🌀 🌊 🐱 🐶 🐭 🐹 🐰 🐺 🐸 🐯 🐨 🐻 🐷 🐮 🐗 🐵 🐒 🐴 🐎 🐫 🐑 🐘 🐍 🐦 🐤 🐔 🐧 🐛 🐙 🐠 🐟 🐳 🐬 💐 🌸 🌹 🌻 🌺 🍁 🍃 🍂 🌴 🌵 🌾 🐚 🎍 💝 🎎 🎒 🎓 🎏 🎆 🎇 🎐 🎑 🎃 👻 🎅 🎄 🎁 🔔 🎉 🎈 💿 📀 📷 🎥 💻 📺 📱 📠 💽 📼 🔊 📢 📣 📻 📡 🔍 🔓 🔒 🔑 🔨 💡 📲 📩 📫 📮 🛀 🚽 💺 💰 🔱 🚬 💣 🔫 💊 💉 🏈 🏀 🎾 🎱 🏊 🏄 🎿 🏆 👾 🎷 🎸 👟 👡 👠 👢 👕 👔 👜 💄 💍 💎 🍵 🍺 🍻 🍸 🍶 🍴 🍔 🍟 🍝 🍛 🍱 🍣 🍙 🍘 🍚 🍜 🍲 🍞 🍳 🍢 🍡 🍦 🍧 🎂 🍰 🍎 🍊 🍉 🍓 🍆 🍅 🏠 🏫 🏢 🏣 🏥 🏦 🏪 🏩 🏨 💒 🏬 🌇 🌆 🏯 🏰 🏭 🗼 🗻 🌄 🌅 🌃 🗽 🌈 🎡 🎢 🚢 🚤 🚀 🚲 🚙 🚗 🚕 🚌 🚓 🚒 🚑 🚚 🚃 🚉 🚄 🚅 🎫 🚥 🚧 🔰 🏧 🎰 🚏 💈 🏁 🎌 🎯 🀄 🎬 📝 📖 🎨 🎤 🎧 🎺 👗 👘 👙 🎀 🎩 👑 👒 🌂

숫자와 분수

¹ ² ³ ½ ¼ ¾

기타 특수문자

' ' " " « » " < > @ × ¨ : ; - _ ~ ¬ / \ \ | ¦ · ° % & § ÷ + ± = * ! ¡ ? ¿ ¼ ½ ¾ ² ³ © ® ( ) [ ] { } ' ⦿ ⧿

1. 정규식을 통한 제거

1
$text = preg_replace('/\r\n|\r|\n/','',$text);


2. 문자열 함수사용으로 제거

1
2
3
$text = str_replace(array("\r\n","\r","\n"),'',$text);
또는
$text = strtr($text,array("\r\n"=>'',"\r"=>'',"\n"=>''));

 

html 태그 제거

1
$content = preg_replace("(\<(/?[^\>]+)\>)", "", $content);

 

textarea 제거

1
2
$content = preg_replace("!<textarea(.*?)>!is","[textarea]",$content);
$content = preg_replace("!</textarea(.*?)>!is","[/textarea]",$content);


script 제거

1
$str=preg_replace("!<script(.*?)<\/script>!is","",$str);


iframe 제거

1
$str=preg_replace("!<iframe(.*?)<\/iframe>!is","",$str);


meta 제거

1
$str=preg_replace("!<meta(.*?)>!is","",$str);


style 태그 제거

1
$str=preg_replace("!<style(.*?)<\/style>!is","",$str);


&nbsp;를 공백으로 변환

1
$str=str_replace("&nbsp;"," ",$str);


연속된 공백 1개로

1
$str=preg_replace("/\s{2,}/"," ",$str);


태그안에 style= 속성 제거

1
2
$str=preg_replace("/ zzstyle=([^\"\']+) /"," ",$str); // style=border:0 따옴표가 없을때
$str=preg_replace("/ style=(\"|\')?([^\"\']+)(\"|\')?/","",$str); // style="border:0" 따옴표 있을때

 
태그안의 width=, height= 속성 제거

1
2
$str=preg_replace("/ width=(\"|\')?\d+(\"|\')?/","",$str);
$str=preg_replace("/ height=(\"|\')?\d+(\"|\')?/","",$str);


img 태그 추출 src 추출

1
2
preg_match("/<img[^>]*src=[\"']?([^>\"']+)[\"']?[^>]*>/i",$str,$result);
preg_match_all("/<img[^>]*src=[\"']?([^>\"']+)[\"']?[^>]*>/i",$str,$result);

 

특수문자 제거

1
$string = preg_replace("/[ #\&\+\-%@=\/\\\:;,\.'\"\^`~\_|\!\?\*$#<>()\[\]\{\}]/i", "", $string);


공백제거

1
2
$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);


영문자와 공백문자(Space)를 제외한 모든 문자를 제거

1
$string = preg_replace("/[^A-Za-z|\x20]/", "", $string);


ASCII 범주 코드 영문+특수문자를 제외한 모든 문자를 제거

1
$string = preg_replace("/[^\x20-\x7e]/", "", $string);


img 태그 추출

1
2
preg_match_all("/<img[^>]*src=[\'\"]?([^>\'\"]+)[\'\"]?[^>]*>/", $img, $matchs);
print_r($matchs);