javaʵÏÖÊä³ö×Ö·û´®ÖеÄÊý×Ö×Ö·û
package com.joe;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Test
{
//½«×Ö·û´®µÄÊý×Ö×Ö·ûÊä³ö
public static void main(String[] args)
{
String str = "iu7i8hy4jnb2";
//·½·¨Ò»
String vString = str.replaceAll("[\\D]", ""); // [\D] == [^\d] == [^0-9]
System.out.println(vString);
//·½·¨¶þ
String regex = "\\d";
Matcher m = Pattern.compile(regex).matcher(str);
while(m.find())
{
System.out.print(m.group());
}
System.out.println();
}
}
Ïà¹ØÎĵµ£º
×î½üÓöµ½Ò»¸öÐèÇóÒªÔÚlinuxÏÂÓÃjava µ÷ÓÃmysql¿Í»§¶ËÔ¶³ÌµÇ½mysql·þÎñÆ÷£¬´Ó¿Í»§¶Ë»úÆ÷µ¼Èëmysql½Å±¾£¬´Ómysql·þÎñÆ÷¶Ëµ¼³ö±íÖеÄÊý¾Ý¡£ÒÔÏÂÊÇÓõ½µÄÖ÷Òª·½·¨£º
Java ´úÂë
/**
* µ¼ÈëÊý¾Ý
* @param ½Å±¾µÄµØÖ·ºÍÃû³Æ
* @return ÊÇ·ñ³ ......
1.½éÉÜ
1£©DOM£¨JAXP Crimson½âÎöÆ÷£©
DOMÊÇÓÃÓëÆ½Ì¨ºÍÓïÑÔÎ޹صķ½Ê½±íʾXMLÎĵµµÄ¹Ù·½W3C±ê×¼¡£DOMÊÇÒÔ²ã´Î½á¹¹×éÖ¯µÄ½Úµã»òÐÅϢƬ¶ÏµÄ¼¯ºÏ¡£Õâ¸ö²ã´Î½á¹¹ÔÊÐí¿ª·¢ÈËÔ±ÔÚÊ÷ÖÐѰÕÒÌØ¶¨ÐÅÏ¢¡£·ÖÎö¸Ã½á¹¹Í¨³£ÐèÒª¼ÓÔØÕû¸öÎĵµºÍ¹¹Ôì²ã´Î½á¹¹£¬È»ºó²ÅÄÜ×öÈκι¤×÷¡£ÓÉÓÚËüÊÇ»ùÓ ......
ÔÎĵØÖ·£ºhttp://hi.baidu.com/lin_zy/blog/item/bf14d21f6bb12ff6e1fe0bf1.html
¸ÅÄî
ʲôÊÇÒì³££¿
Òì³££¨exception£©Ó¦¸ÃÊÇÒ쳣ʼþ£¨exceptional event£©µÄËõд¡£
Òì³£¶¨Ò壺Òì³£ÊÇÒ»¸öÔÚ³ÌÐòÖ´ÐÐÆÚ¼ä·¢ÉúµÄʼþ£¬ËüÖжÏÕýÔÚÖ´ÐеijÌÐòµÄÕý³£µÄÖ¸ÁîÁ÷¡£
µ±ÔÚÒ»¸ö·½·¨Öз¢Éú´íÎóµÄʱºò£¬Õâ¸ö·½·¨´´½¨Ò»¸ö¶ÔÏ󣬲¢ÇÒ ......
ÍøÂç±à³ÌµÄʵÖʾÍÊÇÁ½¸ö£¨»ò¶à¸ö£©É豸£¨ÀýÈç¼ÆËã»ú£©Ö®¼äµÄÊý¾Ý´«Êä¡£
ÍøÂç×îÖ÷ÒªµÄÓÅÊÆÔÚÓÚ¹²Ïí£º¹²ÏíÉ豸ºÍÊý¾Ý£¬ÏÖÔÚ¹²ÏíÉ豸×î³£¼ûµÄÊÇ´òÓ¡»ú£¬Ò»¸ö¹«Ë¾Ò»°ãÒ»¸ö´òÓ¡»ú¼´¿É£¬¹²ÏíÊý¾Ý¾ÍÊǽ«´óÁ¿µÄÊý¾Ý´æ´¢ÔÚÒ»×é»úÆ÷ÖУ¬ÆäËüµÄ¼ÆËã»úͨ¹ýÍøÂç·ÃÎÊÕâЩÊý¾Ý£¬ÀýÈçÍøÕ¾¡¢ÒøÐзþÎñÆ÷µÈµÈ¡£
µ«ÊÇ£¬½øÐÐÍøÂç±à³Ìʱ£¬Ö»ÓÐIP ......
Dear han luoxing,
Thank you for trying YourKit Java Profiler.
Please find your personal evaluation license key below.
With this key, you can evaluate YourKit Java Profiler for 15 days, starting today.
When asked to provide license key, copy and paste the following entire block of lines:
13c970a ......