Hi,
I have a beginner of C# and I need to fix the bug for someone!!
I have the codes like this
Regex re = new Regex(@"<TR VALIGN=top><TD> </TD>.*?</TD></TR>");
MatchCollection theMatches = re.Matches(cont ent);
ArrayList list = new ArrayList();
foreach (Match theMatch in theMatches)
for the string at the bottom...
some how it couldn't get any value ( couldn't get into the foreach
loop )
Does howone point out the problem ??
Please help me, thanks.
----------------------------------------
<TR VALIGN=top><TD> </TD><TD><IMG SRC="/icons/ecblank.gif" BORDER=0
HEIGHT=1 WIDTH=16 ALT=""><FONT SIZE=1
FACE="Verdana"> <li><br></FONT></TD><TD><FONT SIZE=1 COLOR="0000ff"
FACE="Verdana"> <A
HREF="/webcorannc.nsf/1c5fa13a6eee416 848256db2000356 de/88c789fbb737109 c48256dc1002fbb cf?OpenDocument ">Oct
16 2003</A></FONT></TD><TD><FONT SIZE=1 COLOR="0000ff"
FACE="Verdana"> <A
HREF="/webcorannc.nsf/1c5fa13a6eee416 848256db2000356 de/88c789fbb737109 c48256dc1002fbb cf?OpenDocument ">Sales
in open market at own discretion on 15/10/2003. 8,408,000 warrants
pertaining to director/substantial shareholder CHUA HAI
KUEY</A></FONT></TD><TD><IMG SRC="/icons/ecblank.gif" BORDER=0
HEIGHT=16 WIDTH=1 ALT=""></TD></TR>
<TR VALIGN=top><TD> </TD><TD><IMG SRC="/icons/ecblank.gif" BORDER=0
HEIGHT=1 WIDTH=16 ALT=""><FONT SIZE=1
FACE="Verdana"> <li><br></FONT></TD><TD><FONT SIZE=1 COLOR="0000ff"
FACE="Verdana"> <A
HREF="/webcorannc.nsf/1c5fa13a6eee416 848256db2000356 de/71ee5070be7b3a1 d48256dc1002f17 8f?OpenDocument ">Oct
16 2003</A></FONT></TD><TD><FONT SIZE=1 COLOR="0000ff"
FACE="Verdana"> <A
HREF="/webcorannc.nsf/1c5fa13a6eee416 848256db2000356 de/71ee5070be7b3a1 d48256dc1002f17 8f?OpenDocument ">Sales
in open market at own discretion on 15/10/2003. 8,408,000 warrants
pertaining to director/substantial shareholder CHUA HAI
KUEY</A></FONT></TD><TD><IMG SRC="/icons/ecblank.gif" BORDER=0
HEIGHT=16 WIDTH=1 ALT=""></TD></TR>
<TR VALIGN=top><TD> </TD><TD><IMG SRC="/icons/ecblank.gif" BORDER=0
HEIGHT=1 WIDTH=16 ALT=""><FONT SIZE=1
FACE="Verdana"> <li><br></FONT></TD><TD><FONT SIZE=1 COLOR="0000ff"
FACE="Verdana"> <A
HREF="/webcorannc.nsf/1c5fa13a6eee416 848256db2000356 de/11404ba32a1043f c48256db3003b1e 98?OpenDocument ">Oct
02 2003</A></FONT></TD><TD><FONT SIZE=1 COLOR="0000ff"
FACE="Verdana"> <A
HREF="/webcorannc.nsf/1c5fa13a6eee416 848256db2000356 de/11404ba32a1043f c48256db3003b1e 98?OpenDocument ">Others
on 01/10/2003. 4,320,000 shares pertaining to substantial shareholder
CHUA KON SENG</A></FONT></TD><TD><IMG SRC="/icons/ecblank.gif"
BORDER=0 HEIGHT=16 WIDTH=1 ALT=""></TD></TR>
Ginola
I have a beginner of C# and I need to fix the bug for someone!!
I have the codes like this
Regex re = new Regex(@"<TR VALIGN=top><TD> </TD>.*?</TD></TR>");
MatchCollection theMatches = re.Matches(cont ent);
ArrayList list = new ArrayList();
foreach (Match theMatch in theMatches)
for the string at the bottom...
some how it couldn't get any value ( couldn't get into the foreach
loop )
Does howone point out the problem ??
Please help me, thanks.
----------------------------------------
<TR VALIGN=top><TD> </TD><TD><IMG SRC="/icons/ecblank.gif" BORDER=0
HEIGHT=1 WIDTH=16 ALT=""><FONT SIZE=1
FACE="Verdana"> <li><br></FONT></TD><TD><FONT SIZE=1 COLOR="0000ff"
FACE="Verdana"> <A
HREF="/webcorannc.nsf/1c5fa13a6eee416 848256db2000356 de/88c789fbb737109 c48256dc1002fbb cf?OpenDocument ">Oct
16 2003</A></FONT></TD><TD><FONT SIZE=1 COLOR="0000ff"
FACE="Verdana"> <A
HREF="/webcorannc.nsf/1c5fa13a6eee416 848256db2000356 de/88c789fbb737109 c48256dc1002fbb cf?OpenDocument ">Sales
in open market at own discretion on 15/10/2003. 8,408,000 warrants
pertaining to director/substantial shareholder CHUA HAI
KUEY</A></FONT></TD><TD><IMG SRC="/icons/ecblank.gif" BORDER=0
HEIGHT=16 WIDTH=1 ALT=""></TD></TR>
<TR VALIGN=top><TD> </TD><TD><IMG SRC="/icons/ecblank.gif" BORDER=0
HEIGHT=1 WIDTH=16 ALT=""><FONT SIZE=1
FACE="Verdana"> <li><br></FONT></TD><TD><FONT SIZE=1 COLOR="0000ff"
FACE="Verdana"> <A
HREF="/webcorannc.nsf/1c5fa13a6eee416 848256db2000356 de/71ee5070be7b3a1 d48256dc1002f17 8f?OpenDocument ">Oct
16 2003</A></FONT></TD><TD><FONT SIZE=1 COLOR="0000ff"
FACE="Verdana"> <A
HREF="/webcorannc.nsf/1c5fa13a6eee416 848256db2000356 de/71ee5070be7b3a1 d48256dc1002f17 8f?OpenDocument ">Sales
in open market at own discretion on 15/10/2003. 8,408,000 warrants
pertaining to director/substantial shareholder CHUA HAI
KUEY</A></FONT></TD><TD><IMG SRC="/icons/ecblank.gif" BORDER=0
HEIGHT=16 WIDTH=1 ALT=""></TD></TR>
<TR VALIGN=top><TD> </TD><TD><IMG SRC="/icons/ecblank.gif" BORDER=0
HEIGHT=1 WIDTH=16 ALT=""><FONT SIZE=1
FACE="Verdana"> <li><br></FONT></TD><TD><FONT SIZE=1 COLOR="0000ff"
FACE="Verdana"> <A
HREF="/webcorannc.nsf/1c5fa13a6eee416 848256db2000356 de/11404ba32a1043f c48256db3003b1e 98?OpenDocument ">Oct
02 2003</A></FONT></TD><TD><FONT SIZE=1 COLOR="0000ff"
FACE="Verdana"> <A
HREF="/webcorannc.nsf/1c5fa13a6eee416 848256db2000356 de/11404ba32a1043f c48256db3003b1e 98?OpenDocument ">Others
on 01/10/2003. 4,320,000 shares pertaining to substantial shareholder
CHUA KON SENG</A></FONT></TD><TD><IMG SRC="/icons/ecblank.gif"
BORDER=0 HEIGHT=16 WIDTH=1 ALT=""></TD></TR>
Ginola
Comment