JAVA ÕýÔò±í´ïʽ4ÖÖ³£ÓõŦÄÜ
ÕýÔò±í´ïʽÔÚ×Ö·û´®´¦ÀíÉÏÓÐ×ÅÇ¿´óµÄ¹¦ÄÜ£¬sunÔÚjdk1.4¼ÓÈëÁ˶ÔËüµÄÖ§³Ö
ÏÂÃæ¼òµ¥µÄ˵ÏÂËüµÄ4ÖÖ³£Óù¦ÄÜ£º
²éѯ£º
ÒÔÏÂÊÇ´úÂëƬ¶Î£º
String str="abc efg ABC";
String regEx="a|f"; //±íʾa»òf
Pattern p=Pattern.compile(regEx);
Matcher m=p.matcher(str);
boolean rs=m.find();
Èç¹ûstrÖÐÓÐregEx£¬ÄÇôrsΪtrue£¬·ñÔòΪflase¡£Èç¹ûÏëÔÚ²éÕÒʱºöÂÔ´óСд£¬Ôò¿ÉÒÔд³ÉPattern p=Pattern.compile(regEx,Pattern.CASE_INSENSITIVE);
ÌáÈ¡£º
ÒÔÏÂÊÇ´úÂëƬ¶Î£º
String regEx=".+\(.+)$";
String str="c:\dir1\dir2\name.txt";
Pattern p=Pattern.compile(regEx);
Matcher m=p.matcher(str);
boolean rs=m.find();
for(int i=1;i<=m.groupCount();i++){
System.out.println(m.group(i));
}
ÒÔÉϵÄÖ´Ðнá¹ûΪname.txt£¬ÌáÈ¡µÄ×Ö·û´®´¢´æÔÚm.group(i)ÖУ¬ÆäÖÐi×î´óֵΪm.groupCount();
·Ö¸î£º
ÒÔÏÂÊÇ´úÂëƬ¶Î£º
String regEx="::";
Pattern p=Pattern.compile(regEx);
String[] r=p.split("xd::abc::cde");
Ö´Ðкó£¬r¾ÍÊÇ{"xd","abc","cde"}£¬Æäʵ·Ö¸îʱ»¹Óиú¼òµ¥µÄ·½·¨£º
String str="xd::abc::cde";
String[] r=str.split("::");
Ìæ»»£¨É¾³ý£©£º
ÒÔÏÂÊÇ´úÂëƬ¶Î£º
String regEx="a+"; //±íʾһ¸ö»ò¶à¸öa
Pattern p=Pattern.compile(regEx);
Matcher m=p.matcher("aaabbced a ccdeaa");
String s=m.replaceAll("A");
½á¹ûΪ"Abbced A ccdeA"
Èç¹ûд³É¿Õ´®£¬¼È¿É´ïµ½É¾³ýµÄ¹¦ÄÜ£¬±ÈÈ磺
String s=m.replaceAll("");
½á¹ûΪ"bbced ccde"
Æ¥ÅäHTML
1. <([^ >])+[^>]*>(?:[\S\s]*?<\/\1>)?
2. <\s*(\S+)(\s[^>]*)?>[\s\S]*<\s*\/\1\s*>
3. <(S*?)[^>]*>.*?|<.*? />
¸½£º
\d µÈì¶ [^0-9] Êý×Ö
\D µÈì¶ [^0-9] ·ÇÊý×Ö
\s µÈì¶ [ \t\n\r\f ] ¿Õ°××ÖÔª
\S µÈì¶ [^ \t\n\r\f ] ·Ç¿Õ°××ÖÔª
\w µÈì¶ [a-zA-Z_0-9] Êý×Ö»òÊÇÓ¢ÎÄ×Ö
\W µÈì¶ [^a-zA-Z_0-9] ·ÇÊý×ÖÓëÓ¢ÎÄ×Ö
^ ±íʾÿÐеĿªÍ·
$ ±íʾÿÐеĽáβ
Ïà¹ØÎĵµ£º
Java Learning Path £¨Ò»£©¡¢¹¤¾ßƪ
Ò»¡¢ JDK (Java Development Kit)
JDKÊÇÕû¸öJavaµÄºËÐÄ£¬°üÀ¨ÁËJavaÔËÐл·¾³£¨Java Runtime Envirnment£©£¬Ò»¶ÑJava¹¤¾ßºÍJava»ù´¡µÄÀà¿â(rt.jar)¡£²»ÂÛʲôJavaÓ¦Ó÷þÎñÆ÷ʵÖʶ¼ÊÇÄÚÖÃÁËij¸ö°æ±¾µÄJDK¡£Òò´ËÕÆÎÕJDKÊÇѧºÃJavaµÄµÚÒ»²½¡£×îÖ÷Á÷µÄJDKÊÇSun¹«Ë¾·¢²¼µÄJDK£¬³ýÁËSunÖ®Í⣬ ......
JavaÐéÄâ»úµÄÆðÔ´Óë¹¹Ôì
µ±ÎÒÃÇ˵µ½“Java”Õâ¸ö´ÊµÄʱºò£¬Ö¸µÄÊÇËĸöÏ໥¹ØÁªµÄ¸ÅÄJavaÓïÑÔ¡¢Java API¡¢Java ClassÎļþ¸ñʽ¡¢JavaÐéÄâ»ú¡£Õû¸öJavaÌåϵÊÇ»ùÓÚJava ÐéÄâ»ú¹¹ÔìµÄ£¬ÕýÒòΪÈç´Ë£¬²ÅÄÜʵÏÖJavaµÄ°²È«ÐÔºÍÍøÂçÒƶ¯ÐÔ¡£Java²¢·ÇÊǵÚÒ»¸ö²ÉÓÓÐéÄâ»ú”¸ÅÄîµÄÌåϵ£¬µ«È´ÊǵÚÒ»¸öµÃµ½¹ã·ºÔ ......
Java Class Attribute Type Hibernate Type Possible SQL Type-Vendor Specific
Integer, int, long short &n ......
MD5Ëã·¨ÊÇÒ»Öַdz£ÓÅÐãµÄ¼ÓÃÜËã·¨¡£
MD5¼ÓÃÜËã·¨Ìص㣺Áé»îÐÔ¡¢²»¿É»Ö¸´ÐÔ¡£
½éÉÜMD5¼ÓÃÜËã·¨»ù±¾Çé¿öMD5µÄÈ«³ÆÊÇMessage-Digest Algorithm 5£¬ÔÚ90Äê´ú³õÓÉMITµÄ¼ÆËã»ú¿ÆѧʵÑéÊÒºÍRSA Data Security Inc·¢Ã÷£¬¾MD2¡¢MD3ºÍMD4·¢Õ¹¶øÀ´¡£
Message-Digest·ºÖ¸×Ö½Ú´®(Message)µÄHas ......
ArcGIS Server9.3ÍêÕûÇåÎú°²×°Á÷³Ì
ÒÔϵÄArcGIS Server9.3°²×°Á÷³ÌÊÇÎÒ¸öÈË×ܽá³öÀ´µÄ£¬ÔÚwindowXP2Ñé֤ͨ¹ý£¬ÐèÒªµÄ»°£¬Ï£ÍûÓõÄ×Å¡£
Ò»¡¢ArcGIS Server²úÆ·°üÀ¨Á½¸ö²¿·Ö£º
1¡¢GIS Server£¬ËüÊÇÒ»¸öÌṩGIS·þÎñµÄ·þÎñÆ÷Èí¼þ²úÆ·£¬°üÀ¨Ò»ÏµÁкËÐÄAO¿âºÍÒ»¸ö¹ ......