Hi Norton,
This seems to be a bug in RegEx implementation. The bug is passed to our
Devs. I cannot promise anything at this point, but we will try to address
it in the future releases.
--
Regards,
Victor Urnyshev
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| X-Tomcat-ID: 294753620
| References: <uX************ **@TK2MSFTNGP15 .phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From:
vi*****@online. microsoft.com (Victor Urnyshev [MSFT])
| Organization: Microsoft
| Date: Mon, 13 Dec 2004 14:08:46 GMT
| Subject: RE: About Regular Expressions
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.vb
| Message-ID: <wQ************ **@cpmsftngxa10 .phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.langua ges.vb
| Lines: 86
| Path: cpmsftngxa10.ph x.gbl
| Xref: cpmsftngxa10.ph x.gbl microsoft.publi c.dotnet.langua ges.vb:248290
| NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
|
| Hi Norton,
|
| I'll look more into the issue. I don't have an answer yet what is wrong,
| but I can reproduce your issue.
| So far I can advise only to build more specific regular expressions
| minimizing ".*" usage. I suspect this is the root of the problem. As soon
| as I get more information, I'll get back to you.
|
| --
| Regards,
| Victor Urnyshev
|
| This posting is provided "AS IS" with no warranties, and confers no
rights.
|
| --------------------
| | From: "norton" <no********@hot mail.com>
| | Subject: About Regular Expressions
| | Date: Fri, 10 Dec 2004 01:15:23 +0800
| | Lines: 56
| | X-Priority: 3
| | X-MSMail-Priority: Normal
| | X-Newsreader: Microsoft Outlook Express 6.00.3790.181
| | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.181
| | Message-ID: <uX************ **@TK2MSFTNGP15 .phx.gbl>
| | Newsgroups: microsoft.publi c.dotnet.langua ges.vb
| | NNTP-Posting-Host: 210006240035.ct inets.com 210.6.240.35
| | Path:
|
cpmsftngxa10.ph x.gbl!TK2MSFTNG XA01.phx.gbl!TK 2MSFTNGP08.phx. gbl!TK2MSFTNGP1 5
| .phx.gbl
| | Xref: cpmsftngxa10.ph x.gbl microsoft.publi c.dotnet.langua ges.vb:247781
| | X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.vb
| |
| | Hi,
| |
| | I am learning Regular Expression and currently i am trying to capture
| | information from web page.
| | I wrote the following code to capture the ID as well as the Title
| |
| | Dim regex = New Regex( _
| |
| "viewtopic.php\ ?t=(?<ID>\d+)"" \sclass=""topic title"">(?<Titl e>.*)\</a>",
| | _
| | RegexOptions.Ig noreCase _
| | Or RegexOptions.Mu ltiline _
| | Or RegexOptions.Co mpiled _
| | )
| |
| | It works fine
| | Now i am trying to get the post date by using the following regex
| | "s=""postdetail s"">(?<Date>.*) \<br />"
| |
| | It works fine too, but when i combine the two reg ex together (That is
| |
|
"viewtopic.php\ ?t=(?<ID>\d+)"" \sclass=""topic title"">(?<Titl e>.*)\</a>.*s=""
| | postdetails"">( ?<Date>.*)\<br />"", it cannot got the correct data,
could
| | anyone know how can i fix this? whatz wrong on my regex?
| |
| | Thx a lot
| | Regards,
| | Norton
| |
| |
| | (Here is the source text for reg exp to take place, the ID i want to
| capture
| | is 245090, title is "Can someone help me import a database" and the
date
| is
| | Wed Dec 08, 2004 6:31 pm)
| |
| | <tr>
| | <td class="row1" align="center" valign="middle" width="20"><img
| | src="templates/subSilver/images/folder.gif" width="19" height="18"
alt="No
| | new posts" title="No new posts" /></td>
| | <td class="row1" width="100%"><s pan class="topictit le"><a
| | href="viewtopic .php?t=245090" class="topictit le">Can someone help me
| import
| | a database</a></span><span class="gensmall "><br />
| | </span></td>
| | <td class="row2" align="center" valign="middle" ><span
| | class="postdeta ils">2</span></td>
| | <td class="row3" align="center" valign="middle" ><span class="name"><a
| |
|
href="profile.p hp?mode=viewpro file&u=1542 79">savethesqui rrels</a></span>
| | </td>
| | <td class="row2" align="center" valign="middle" ><span
| | class="postdeta ils">126</span></td>
| | <td class="row3Righ t" align="center" valign="middle"
| | nowrap="nowrap" ><span class="postdeta ils">Wed Dec 08, 2004 6:31 pm<br
/><a
| | href="profile.p hp?mode=viewpro file&u=1542 79">savethesqui rrels</a> <a
| | href="viewtopic .php?p=1344942# 1344942"><img
| | src="templates/subSilver/images/icon_latest_rep ly.gif" alt="View latest
| | post" title="View latest post" border="0" /></a></span></td>
| | </tr>
| |
| |
| |
|
|