javaÕýÔò±í´ïʽ
ÔÚʹÓÃRegularExpressionValidatorÑéÖ¤¿Ø¼þʱµÄÑéÖ¤¹¦Äܼ°ÆäÑéÖ¤±í´ïʽ½éÉÜÈçÏÂ:
Ö»ÄÜÊäÈëÊý×Ö£º“^[0-9]*$”
Ö»ÄÜÊäÈënλµÄÊý×Ö£º“^d{n}$”
Ö»ÄÜÊäÈëÖÁÉÙnλÊý×Ö£º“^d{n,}$”
Ö»ÄÜÊäÈëm-nλµÄÊý×Ö£º“^d{m,n}$”
Ö»ÄÜÊäÈëÁãºÍ·ÇÁ㿪ͷµÄÊý×Ö£º“^(0|[1-9][0-9]*)$”
Ö»ÄÜÊäÈëÓÐÁ½Î»Ð¡ÊýµÄÕýʵÊý£º“^[0-9]+(.[0-9]{2}) $”
Ö»ÄÜÊäÈëÓÐ1-3λСÊýµÄÕýʵÊý£º“^[0-9]+(.[0-9]{1,3}) $”
Ö»ÄÜÊäÈë·ÇÁãµÄÕýÕûÊý£º“^+ [1-9][0-9]*$”
Ö»ÄÜÊäÈë·ÇÁãµÄ¸ºÕûÊý£º“^-[1-9][0-9]*$”
Ö»ÄÜÊäÈ볤¶ÈΪ3µÄ×Ö·û£º“^.{3}$”
Ö»ÄÜÊäÈëÓÉ26¸öÓ¢ÎÄ×Öĸ×é³ÉµÄ×Ö·û´®£º“^[A-Za-z]+$”
Ö»ÄÜÊäÈëÓÉ26¸ö´óдӢÎÄ×Öĸ×é³ÉµÄ×Ö·û´®£º“^[A-Z]+$”
Ö»ÄÜÊäÈëÓÉ26¸öСдӢÎÄ×Öĸ×é³ÉµÄ×Ö·û´®£º“^[a-z]+$”
Ö»ÄÜÊäÈëÓÉÊý×ÖºÍ26¸öÓ¢ÎÄ×Öĸ×é³ÉµÄ×Ö·û´®£º“^[A-Za-z0-9]+$”
Ö»ÄÜÊäÈëÓÉÊý×Ö¡¢26¸öÓ¢ÎÄ×Öĸ»òÕßÏ»®Ïß×é³ÉµÄ×Ö·û´®£º“^w+$”
ÑéÖ¤Óû§ÃÜÂë:“^[a-zA-Z]\w{5,17}$”ÕýÈ·¸ñʽΪ£ºÒÔ×Öĸ¿ªÍ·£¬³¤¶ÈÔÚ6-18Ö®¼ä£¬ Ö»ÄÜ°üº¬×Ö·û¡¢Êý×ÖºÍÏ»®Ïß¡£
ÑéÖ¤ÊÇ·ñº¬ÓÐ^%&',;= $"µÈ×Ö·û£º“[^%&',;= $x22]+”
Ö»ÄÜÊäÈ뺺×Ö£º“^[u4e00-u9fa5],{0,}$”
ÑéÖ¤EmailµØÖ·£º“^w+[-+.]w+)*@w+([-.]w+)*.w+([-.]w+)*$”
ÑéÖ¤InternetURL£º“^http://([w-]+.)+[w-]+(/[w-./ %&=]*) $”
ÑéÖ¤µç»°ºÅÂ룺“0\d{2}-\d{7,8}|0\d{3}-\d{7}|\d{7,8}” ÕýÈ·¸ñʽΪ£º“010-12345678”£¬“0123-1234567”£¬“1234567”£¬ “12345678”¡£
ÑéÖ¤Éí·ÝÖ¤ºÅ£¨15λ»ò18λÊý×Ö£©£º\d{18}|\d{17}[a-zA-Z]{1}|\d{15}
ÑéÖ¤Ò»ÄêµÄ12¸öÔ£º“^(0 [1-9]|1[0-2])$”ÕýÈ·¸ñʽΪ£º“01”-“09”ºÍ“1”“12”
ÑéÖ¤Ò»¸öÔµÄ31Ì죺“^((0 [1-9])|((1|2)[0-9])|30|31)$” ÕýÈ·¸ñʽΪ£º“01”“09”ºÍ“1”“31”¡£
³£Óñí´ïʽ£º
"^\d+$"¡¡¡¡//·Ç¸ºÕûÊý£¨ÕýÕûÊý + 0£©
"^[0-9]*[1-9][0-9]*$"¡¡¡¡//ÕýÕûÊý
"^((-\d+)|(0+))$"¡¡¡¡//·ÇÕýÕûÊý£¨¸ºÕûÊý +
Ïà¹ØÎĵµ£º
boolean java.lang.Object.equals(Object obj)
Indicates whether some other
object is "equal to" this one.
The equals method implements an
equivalence relation on non-null object references:
It is reflexive: for
any non-null reference value x, x.equals(x) should return true.
It ......
ÎÄÕÂת×Ô:http://www.javaeye.com/topic/31742
---------------------------------------------------
ÂÒÂë¶ÔÓÚʹÓ÷ÇÓ¢ÓïÎÄ×Ö³ÌÐòÔ±»ù±¾ÉÏÊÇÒ»Ö±²øÈÆÔÚÉí±ßµÄÂ鷳ʣ¬Õâ¸öËÒ²±ÜÃâ²»ÁË¡£ÏÂÃæÊÇÎÒ½â¾öÂÒÂëʱºòµÄÒ»µãС¾Ñé¡£»¶ÓÖ¸Õý
Ò»¡¢±ÜÃâÂÒÂëµÄһЩעÒâµã£º
1.¾¡Á¿Ê¹ÓÃͳһµÄ±àÂ룬Èç¹ûÄãÊÇÖØÍ·¿ª·¢Ò»¸öÏ ......
³ Java ÓïÑÔÖУ¬¶Ô¸÷ÖÖ±äÁ¿¡¢·½·¨ºÍÀàµÈÒªËØÃüÃûʱʹÓõÄ×Ö·ûÐòÁгÆΪ±êʶ·û¡£
--·²ÊÇ×Ô¼º¿ÉÒÔÆðÃû×ֵĵط½¶¼½Ð±êʾ·û£¬¶¼×ñÊرêʾ·ûµÄ¹æÔò¡£
³ Java ±êʶ·ûÓÐÈçÏÂÃüÃû¹æÔò£º
– ±êʶ·ûÓÉ×Öĸ¡ ......
ÎÄÕÂÀïÓÐһЩ±í¸ñ£¬javaeyeµÄÌûºÃÏñ²»Ö§³Ö±í¸ñÐÎʽ£¬ÓÐÐËȤ¿ÉÒÔµ½ÎÒµÄblog¿´¿´¡£
http://hzxdark.javaeye.com
Ò»£®JPCAP¼ò½é
ÖÚËùÖÜÖª£¬JAVAÓïÑÔËäÈ»ÔÚTCP/UDP´«Êä·½Ãæ¸øÓèÁËÁ¼ºÃµÄ¶¨Ò壬µ«¶ÔÓÚÍøÂç²ãÒÔϵĿØÖÆ£¬È´ÊÇÎÞÄÜΪÁ¦µÄ¡£JPCAPÀ©Õ¹°üÃÖ²¹ÁËÕâÒ»µã¡£
JPCAPʵ¼ÊÉϲ¢·ÇÒ»¸öÕæÕýȥʵÏÖ¶ÔÊý¾ÝÁ´Â·²ãµÄ¿ØÖÆ£¬¶øÊ ......
ÔÚjava»·¾³±äÁ¿ÅäÖÃÉÏץס “Á½Ìí¼Ó£¬ÒÔÐ޸ľÍOKÁË”
°´×¡windows¼ü+PauseBreak¼üÖ±½ÓÔڸ߼¶ÖеĻ·¾³±äÁ¿´¦ÉèÖÃ
1.Ìí¼Ó
CLASSPATH
.;C:\Program Files\Java\jdk1.6.0_02\lib;£¨ÕâÊÇÄãJdk°²×°µÄĿ¼Ïµİü£©
2.Ìí¼Ó
JAVA_HOME
C:\Program Files\Java\jdk1.6.0_02
3.ÐÞ¸Ä
ÐÞ¸Äpath±äÁ¿
C:\Progra ......