帮忙把VB.NET代码转成ASP的
VB.NETcodePublicFunctionExtract(ByValstrMsgAsString,ByValstartStrAsString,ByValendStr...
VB.NET code Public Function Extract(ByVal strMsg As String, ByVal startStr As String, ByVal endStr As String, ByVal Rete As Boolean) As String
Dim rgx As Regex = New Regex("(?is)(?<=" & startStr & ").*?(?=" & endStr & ")")
If Rete Then
Return startStr & rgx.Match(strMsg).Value & endStr
Else
Return rgx.Match(strMsg).Value
End If
End Function
帮忙把上面的代码转成ASP的 展开
Dim rgx As Regex = New Regex("(?is)(?<=" & startStr & ").*?(?=" & endStr & ")")
If Rete Then
Return startStr & rgx.Match(strMsg).Value & endStr
Else
Return rgx.Match(strMsg).Value
End If
End Function
帮忙把上面的代码转成ASP的 展开
1个回答
展开全部
推荐个工具给你吧,看看这篇文章
http://blog.csdn.net/swort_177/article/details/2573592
http://blog.csdn.net/swort_177/article/details/2573592
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询