< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
> < html xmlns ="http://www.w3.org/1999/xhtml" > < head > < meta http-equiv ="Content-Type" content ="text/html; charset=gb2312" > < title >Java中使用正则表达式校验字符串 - 熔 岩 - 51CTO技术博客
</title> < meta name ="description" content ="Java中使用正则表达式校验字符串正则表达式是某一位伟大的数学家发明的,现在已经形成了一个ISO标准,这个标准和编程语言没有关系。至于具体谁发明的,怎么发明的,我也忘记了:)。 正则表达式简单理解就是.." > < meta name ="keywords" content ="Java中使用正则表达式校验字符串" > < meta http-equiv ="Cache-Control" content ="private" > < base href ="http://lavasoft.blog.51cto.com/" > </base> < script src ="/js/def.js" > </script> < SCRIPT language=javascript
src ="http://blog.51cto.com/js/message.js" type=text/javascript
> </SCRIPT> < SCRIPT language=javascript
src ="http://blog.51cto.com/js/user_comment.js" type=text/javascript
> </SCRIPT> < SCRIPT language=javascript
src ="http://blog.51cto.com/js/base2.js" type=text/javascript
> </SCRIPT> < SCRIPT language=javascript
src ="http://blog.51cto.com/js/dialog_utf8.js" type=text/javascript
> </SCRIPT> < link href ="/css/skin/2.css" rel ="stylesheet" type ="text/css" > < link href ="/css/group/group.css" rel ="stylesheet" type ="text/css" > < link rel ="alternate" href ="../rss.php?uid=62575" type ="application/rss+xml" title ="RSS 2.0" > < link rel ="edituri" type ="application/rsd+xml" title ="rsd" href ="xmlrpc.php?rsd=1" /> < script > var myid = "";
function add_flink(){
if(myid){
var url='/mod/edit_flink.php?type=addflink&uid=62575&flink=http://lavasoft.blog.51cto.com';
var ajax = InitAjax1();
ajax.open("GET", url, true);
ajax.onreadystatechange = function() {
if (ajax.readyState == 4 && ajax.status == 200) {
if(ajax.responseText==""){
alert("添加成功。");
}
if(ajax.responseText=="1"){
alert("链接指向自己。");
}
if(ajax.responseText=="2"){
alert("友情链接已存在。")
}
}
}
ajax.send(null);
}else{
var refurlk = "http://lavasoft.blog.51cto.com/62575/64994";
commentSubmit("",refurlk);
return false;
}
}
function sendmessage(){
var refurlk = "http://lavasoft.blog.51cto.com/62575/64994";
if(myid){
return true;
}else{
commentSubmit("",refurlk);
return false;
}
}
function copylink(ourl){
if(!ourl){
var clipBoardContent = "http://lavasoft.blog.51cto.com";
}else{
var clipBoardContent = ourl;
}
window.clipboardData.setData("Text",clipBoardContent);
alert("复制成功!");
return false;
}
function correctPNG() {
if (document.getElementById('blog_touxian'))
{
var img = document.getElementById('blog_touxian');
var imgName = img.src.toUpperCase()
var imgID = (img.id) ? "id='" + img.id + "' " : ""
var imgClass = (img.className) ? "class='" + img.className + "' " : ""
var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
var imgStyle = "display:inline-block;" + img.style.cssText
if (img.align == "left") imgStyle = "float:left;" + imgStyle
if (img.align == "right") imgStyle = "float:right;" + imgStyle
if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
var strNewHTML = "<span " + imgID + imgClass + imgTitle
+ " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
+ "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
+ "(src=\'" + img.src + "\', sizingMethod='scale');\">
</span>" ;
img.outerHTML = strNewHTML;
}
}
//window.attachEvent(" correctPNG);
window.
</script> < style type ="text/css" > #layout_0{
width:;
float:left;
}
#layout_1{
width:;
float:left;
}
#layout_3{
width:;
float:left;
}
.albumalert{
width:250px;
height:150px;
background:#fff;
border:1px solid #777;
}
.alerttitle{
text-align:left;
color:#000;
padding:6px;
background-image:url("http://img1.51cto.com/images/quickwindow.jpg");
background-repeat:repeat-x;
font-size:14px;
height:22px;
}
.alertcentent{
line-height:30px;
}
.alertcentent p{
color:#000;
}