ת ÔõÑùÓÃÕýÔò±í´ïʽȥ³ýÎı¾Öеıêµã·ûºÅ
public static void main(String[] args){ String string="²âÊÔ<>¡¶¡·£¡*(^)$%~!@#$¡&%£¤¡ª+=¡¢¡££¬£»¡®¡¯¡°¡±£º¡¤`Îı¾"; System.out.println(string.replaceAll("\\pP|\\pS", "")); }Êä³ö½á¹ûΪ£º
²âÊÔÎı¾
²Î¿¼µÄÖ÷ÒªÄÚÈÝÈçÏ£º
Unicode ±àÂë²¢²»Ö»ÊÇΪij¸ö×Ö·û¼òµ¥¶¨ÒåÁËÒ»¸ö±àÂ룬¶øÇÒ»¹½«Æä½øÐÐÁ˹éÀà¡£
\pP ÆäÖеÄСд p ÊÇ property µÄÒâ˼£¬±íʾ Unicode ÊôÐÔ£¬ÓÃÓÚ Unicode Õý±í´ïʽµÄǰ׺¡£
´óд P ±íʾ Unicode ×Ö·û¼¯Æ߸ö×Ö·ûÊôÐÔÖ®Ò»£º±êµã×Ö·û¡£
ÆäËûÁù¸öÊÇ
L£º×Öĸ£»
M£º±ê¼Ç·ûºÅ£¨Ò»°ã²»»áµ¥¶À³öÏÖ£©£»
Z£º·Ö¸ô·û£¨±ÈÈç¿Õ¸ñ¡¢»»Ðеȣ©£»
S£º·ûºÅ£¨±ÈÈçÊýѧ·ûºÅ¡¢»õ±Ò·ûºÅµÈ£©£»
N£ºÊý×Ö£¨±ÈÈç°¢À²®Êý×Ö¡¢ÂÞÂíÊý×ֵȣ©£»
C£ºÆäËû×Ö·û
ÉÏÃæÕâÆ߸öÊÇÊôÐÔ£¬Æ߸öÊôÐÔÏ»¹ÓÐÈô¸É¸ö×ÓÊôÐÔ£¬ÓÃÓÚ¸ü½øÒ»²½µØ½øÐÐϸ·Ö¡£
Java ÖÐÓÃÓÚ Unicode µÄÕýÔò±í´ïʽÊý¾Ý¶¼ÊÇÓÉ Unicode ×éÖ¯ÌṩµÄ¡£
Unicode ÕýÔò±í´ïʽ±ê×¼£¨¿ÉÒÔÕÒµ½ËùÓеÄ×ÓÊôÐÔ£©
http://www.unicode.org/reports/tr18/
¸÷ Unicode ×Ö·ûÊôÐԵĶ¨Ò壬¿ÉÒÔÓÃÒ»¿´¿´Ä³¸ö×Ö·û¾ßÓÐʲôÊôÐÔ¡£
http://www.unicode.org/Public/UNIDATA/UnicodeData.txt
Õâ¸öÎı¾ÎĵµÒ»ÐÐÊÇÒ»¸ö×Ö·û£¬µÚÒ»ÁÐÊÇ Unicode ±àÂ룬µÚ¶þÁÐÊÇ×Ö·ûÃû£¬µÚÈýÁÐÊÇ Unicode ÊôÐÔ£¬
ÒÔ¼°ÆäËûһЩ×Ö·ûÐÅÏ¢¡£
ÔÎĵØÖ·£ºhttp://blog.csdn.net/telnetor/archive/2010/11/28/6041323.aspx
ÍƼöÐÅÏ¢
- ÔÝÎ޼Ǽ
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
×î½ü¸üÐÂ
- java urlÖØд¼¼Êõ(UrlReWriter)
- [ת]JavaµÄÊý×飨Array£©¡¢Vector¡¢ArrayLis....
- jsp»·¾³ÏÂajaxÂÒÂëÎÊÌâµÄ½â¾ö
- JSP¼¼Êõ Ö¸Áî ÂÒÂëÎÊÌâ ÔËÐÐÔÀíºÍ¾Å´óÒþʽ¶ÔÏó web¿ª·¢µÄË....
- JAVA ˮӡ ͼƬ ÎÄ×Ö
- java¶þ½øÖÆ£¬ÔÂë¡¢·´Âë¡¢²¹Â롢λÔËËã
- Java WebÓ¦ÓÃÆô¶¯¼ä¸ôÖ´ÐеijÌÐò
- jspÉú³ÉxmlÎļþʾÀý
- javaÖÐÀà±äÁ¿¡¢Àà·½·¨¡¢ÊµÀý±äÁ¿¡¢ÊµÀý·½·¨
- JSPÒ³ÃæµÄÎåÖÖÌøת·½·¨
ÆÀÂÛ