Yes. i dont want test the class, i want all links with this class, its not possible ?
2008/12/3 CK <[EMAIL PROTECTED]> > > your regex is matching class="detLink" but that is not in the test you > posted, therefore your regex will not match it. > > On 2 Dec, 23:41, "Paulo Coutinho" <[EMAIL PROTECTED]> wrote: > > Hi guys, > > > > Im have a problem with matches on C# with regexp. > > > > I have this html: > > > > *1 - <tr class="alt"> > > **2 - **<td class="vertTh"><a href="/browse/699" title="More from this > > category">Other > Other</a></td> > > **3 - **<td><a href="/torrent/4508522/Teste_de_torrent" class="detLink" > > title="Details for Teste de torrent">Teste de torrent</a></td> > > **4 - **<td>11-14 18:06</td> > > **5 - **<td><a href=" > http://torrents.thepiratebay.org/4508522/Teste_de_torrent.4508522.TPB..." > > title="Download this torrent"><img src=" > http://static.thepiratebay.org/img/dl.gif" class="dl" alt="Download" > > /></a></td> > > **6 - **<td align="right">54.76 MiB</td> > > **7 - **<td align="right">0</td> > > **8 - **<td align="right">0</td> > > **9 - **</tr>* > > > > And need take the informations of line 3 and line 5, but i try too much > > without success. > > > > This is the code that i try to get data of line 3: > > > > *Regex regex = new Regex(@"<a href=""(?<link>)"" class=""detLink"" > > title=""(?<titulo>)"">(?<nome>)</a>", RegexOptions.IgnoreCase); > > MatchCollection mResex = regex.Matches(res); > > > > MessageBox.Show(mResex[0].Groups["link"].Value); > > > > *But* *an error happen: > > > > Specified argument was out of the range of valid values. > > Parameter name: i > > > > And the mResex dont have nothing in it(no find). > > > > -- > > Atenciosamente, > > Paulo Coutinho. > > Site:www.prsolucoes.com > > Msn: [EMAIL PROTECTED] > > Skype: paulo.prsolucoes > -- Atenciosamente, Paulo Coutinho. Site: www.prsolucoes.com Msn: [EMAIL PROTECTED] Skype: paulo.prsolucoes
