ASP 정규 표현 식 기법

1424 단어
 
  
str = request("str")
reg = request("reg")
set regex = new RegExp

With regex
.Pattern = reg
.IgnoreCase = False
.Global = True
End With

Set match = regex.Execute(str)

If match.Count > 0 Then
For Each matched in match
Response.Write " : " & matched.FirstIndex & "

:"&matched.Length&"
"
Next

Else
Response.Write "" & regex.Pattern & " "
End If

Set regex = nothing
%>


text:

좋은 웹페이지 즐겨찾기