CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: NewsGroup Date Entered: 3/3/2007 5:05:46 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 6 Views: 19 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
7 Items, 1 Pages 1 |< << Go >> >|
DaSoul
Asp.Net User
Regular expression bugs caused by SP1?3/3/2007 5:05:46 PM

0/0

I had the following code that worked for on my previous install of Visual Studio 2005 without SP1.  Now I reinstalled and went ahead and installed SP1 and now it doesnt work.

  

mc = Matches(strValue, "\(?<text>.*?)\[/url\]", RegexOptions.Singleline Or RegexOptions.IgnoreCase)
For Each m In mc
    strValue = Regex.Replace(strValue, m.Value, "<a href =""" & m.Groups("link").Captures(0).ToString & """>" & m.Groups("text").Captures(0).ToString & "</a>")
Next

testing on this strValue

"[url=http://www.domain.com/test/code-check/a-b-c-d1.php?a=1]Test Url"

it now fails where previously it did not.

I do not have my original VS 2005 without SP1.  Can someone test this to make sure it works as I believe it should.  I know probably is not great and I tried to rework it to get rid of the any and it works fine under expresso but fails in VS at runtime.


 

DaSoul
Asp.Net User
Re: Regular expression bugs caused by SP1?3/3/2007 5:32:19 PM

0/0

This should be "Test Url"

 Sorry
 

DaSoul
Asp.Net User
Re: Regular expression bugs caused by SP1?3/3/2007 5:35:22 PM

0/0

 
strValue = "Test Url"
Sorry about that.
DaSoul
Asp.Net User
Re: Regular expression bugs caused by SP1?3/3/2007 5:37:03 PM

0/0

Ok... I think you understand there should be a [/url] at the end of that.

 

Would be nice if you could actually just enter code that wont be rendered by your forum post processing. :) 

DaSoul
Asp.Net User
Re: Regular expression bugs caused by SP1?3/3/2007 6:09:17 PM

0/0

Sorry I did not include this... The error I received is..

 

"parsing "['url=http://www.domain.com/test/code-check/a-b-c-d1.php?a=1]Test URL[/url']" - [x-y] range in reverse order. "

 http://www.domain.com/test/code-check/a-b-c-d1.php?a=1

 

It is like it sees the dashes in the url AS the regular expression. 

 

DaSoul
Asp.Net User
Re: Regular expression bugs caused by SP1?3/3/2007 6:15:35 PM

0/0

And the regex is...

\[rul=(?<link>.*?)\](?<text>.*?)\[/rul\]

 

you have to turn the rul into url otherwise it obviously wont get posted correctly to the page.

 

DaSoul
Asp.Net User
Re: Regular expression bugs caused by SP1?3/4/2007 12:01:42 AM

0/0

I guess I was wrong here.  The problem was with the Regex.Replace not the matching portion.  I thought it worked before but I must have changed something two weeks ago that caused this to not work.  My bad nothing wrong with sp1. :)
7 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
Regex bug in VC2008 SP1 TR1 library - Cluebat-man to the rescue Sep 4, 2008 ... Regex bug in VC2008 SP1 TR1 library. Yesterday I tracked down a bug in the TR1 regex library that is shipped with VS2008 SP1. ...
Feedback: Regular expression search/replace bug with complex ... If installing SP1 does not resolve the issue for you, please reactivate. ... Now open up search/replace, turn on regular expression, and type the following ...
Visual C++ Team Blog : TR1 Fixes In VC9 SP1 (This surprising bug was caused by library and compiler bugs, both fixed. .... re: TR1 Fixes In VC9 SP1. Remember that is part of the C++0x Standard ...
Exchange 2007 SP1 regular expression in transport rules ... Exchange 2007 SP1 regular expression in transport rules .... Announcements; General; Beta Feedback. Feedback; Input; EE Bugs ...
Gotcha: Fixing Error with VS 2005 SP1 Beta and older Web ... Regular Expressions · MS Communities · CodeWise Communities Web Hosting ... This is caused by a bug with the SP1 Beta setup. You can fix this with the SP1 ...
DevASP.Net BUG: SP1 Regression: Uninstalling SQL Server 2000 Does ... BUG: SP1 Regression: Uninstalling SQL Server 2000 Does Not Remove the ... NET & MS Expression Studio and a Free copy of MS Expression Web with Windows ...
Connect Bugs Fixed in Visual Studio 2005 Service Pack 1 (SP1) Authenticode Signing: Satellite Resource Assemblies not signed by Visual Studio ..... Regular expression search/replace bug with complex expression ...
PHP Bugs: #33204: Windows 2003 SP1 IIS PHP 5 CGI strange behaviour You can add a comment by following this link or if you reported this bug, ... Strings related, Variables related, Regular Expressions, PCRE related ...
ISS X-Force Database: postgresql-regular-expression-dos(39497 ... Jan 7, 2008 ... PostgreSQL is vulnerable to a denial of service, caused by an error when processing regular expressions. By creating infinite loops using ...
O p e n W i k i - Open Wiki/Bugs/Fixed In078 0.78sp1 installed, but korean page names got error.., but this site works well. ... Regular Expression Bug and Acronym Linky Feature ...




Search This Site:










file manager exception with 4.0.2

trying to import my own skin... it's not working...

dnn 2.12 membership services

formsauthentication before page_load

web user control and databindings window

building sitemap from database null value error using iif

dnn persisting scroll position

how to integrate paypal from my website?

how would i show a mini profile on the navigation bar?

custom module problem

scheduler not working dnn 2.1.2

see my web page in iis

dnn module for 3 - play mpeg in page

error when using forms authentication

treeview vs menu css class

how to build a tree type guest book?

changing formt of friendly url's

ddn2.0.4 problem: auto log-off for some users (on ideaca photoalbum, repository,...)

sitemap - question!

new panes

question about master page

unable to click on tabstrip

automatically replacing sections (i.e. applicationsettings) in the web.config

dnn upgrade 3.2 to 4.0.2 error - the resource can not be found

problem after install! please help!

who can help me?

about tabstrip

help deploying site(files) on production server!!!

validate new users email address

cannot use a 'begin' and 'end' statements in a stored procedure?

 
All Times Are GMT