本文章為你提供一款超好的asp教程 去除字符串中的空格和數字正則表達式哦
<script language="網頁特效" type="text/javascript">
var str;
str="
var rg;
rg=/[
var newstr=str
document
</script>
方法二
<script language="javascript" type="text/javascript">
var str;
str="
var rg;
rg=/[
var newstr=str
document
</script>
方法三
function checkexp(patrn
dim regex
set regex = new regexp ’ 建立正則表達式
regex
regex
regex
matches = regex
checkexp = matches
end function
方法四
$str =
//$part =
$part
preg_match_all($part
var_dump($str);
From:http://tw.wingwit.com/Article/program/net/201311/14262.html