I wrote a regular expression matching thing, and these are the only functions I used.
Copy the code as follows:<%
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 <B><input value= & matched.Value & ></B> Position: <B> & matched.FirstIndex & </B>
Length
:&matched.Length&<BR>Next
Else
Response.Write <B> & regex.Pattern & </B> No match foundEnd
If
Set regex = nothing
%>
<form method=post >
text:<br>
<textarea cols=50 rows=10 name=str><%=str%></textarea><br>
regexp:<input name=reg value=<%=reg%>><br>
<input type=submit value=regexp>
</form>
About specific regular expression functions