Hi i'm converting pages from classic to .net, I'm having issues with this regex aspect and was wondering if someone could help with the compliation error, this is what i have transformed to .net, it starting to faile here: rx=new regexp
Thanks for the pointers!
<%@ Import Namespace="System.Text.RegularExpressions" %>
basically i search in the html (s string) for the x array positions of each instance of: >
and getting the valkues between the > this value < of each instance. Hope that makes sense.
Thanks for the pointers!
<%@ Import Namespace="System.Text.RegularExpressions" %>
Code:
<%
Dim x(3)
x(0) = 21
x(1) = 23
x(2) = 25
dim rx,cm,t
's the string in question is a chunck of html
rx=new regexp
rx.global=false
for x = 17 to 31 Step 2
rx.pattern="^((.|\s)*?\>){" & x & "}((.|\s)*?)\<"
cm=rx.execute(s)
if cm.count<>0 then
t=cm(0).submatches(2)
end if
't is the answer
response.write(t)
next
%>
basically i search in the html (s string) for the x array positions of each instance of: >
and getting the valkues between the > this value < of each instance. Hope that makes sense.