欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

asp+正則獲得字符串中最后一個(gè)字母非字母不算

 更新時(shí)間:2008年06月20日 08:55:45   作者:  
非常不錯(cuò)的用正則表達(dá)式實(shí)現(xiàn)的,獲取字符串中最后一個(gè)字母的代碼,這個(gè)正則可以應(yīng)用在所有的支持正則的語言中
 
復(fù)制代碼 代碼如下:

Function getLastWord(str)
Set regEx = New RegExp
regEx.Pattern = "(.*)([a-zA-Z])[^a-zA-Z]*"
regEx.IgnoreCase = false
regEx.Global = True
str = regEx.Replace(str,"$2")
getLastWord = str
Set reg=nothing
End Function
str="1B2A3fdsafdsf32432432"
Response.Write(getLastWord(str)):Response.End()

相關(guān)文章

最新評論