Click here to Skip to main content
15,896,415 members
Home / Discussions / C#
   

C#

 
AnswerRe: Concating strings... Pin
Guffa13-Jul-07 10:25
Guffa13-Jul-07 10:25 
AnswerRe: Concating strings... Pin
Luc Pattyn13-Jul-07 10:35
sitebuilderLuc Pattyn13-Jul-07 10:35 
QuestionA query regarding deployment!!! Pin
haseebbutt00713-Jul-07 8:02
haseebbutt00713-Jul-07 8:02 
AnswerRe: A query regarding deployment!!! Pin
Dave Kreskowiak13-Jul-07 8:11
mveDave Kreskowiak13-Jul-07 8:11 
GeneralRe: A query regarding deployment!!! Pin
haseebbutt00713-Jul-07 8:42
haseebbutt00713-Jul-07 8:42 
GeneralRe: A query regarding deployment!!! Pin
Dave Kreskowiak13-Jul-07 8:57
mveDave Kreskowiak13-Jul-07 8:57 
GeneralRe: A query regarding deployment!!! Pin
Larantz13-Jul-07 23:15
Larantz13-Jul-07 23:15 
GeneralRegEx bug in .NET Framework!! Pin
Dominic Pettifer13-Jul-07 7:09
Dominic Pettifer13-Jul-07 7:09 
OK, this is interesting, I think I've found a bug in the RegEx class in the .NET framework. Run the following as a simple console app...

using System.Text.RegularExpressions;

namespace RegExBug
{
    class Program
    {
        static void Main(string[] args)
        {
            string emailPattern =
                @"^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@(([0-9a-zA-Z])+([-\w]*[0-9a-zA-Z])*\.)+[a-zA-Z]{2,9})$";
            Regex emailTest = new Regex(emailPattern);

            if (emailTest.IsMatch("sad.couple.skint.tired.fedup@ukgateway.n"))
            {
                return;
            }
        }
    }
}


Now when it gets to the code 'emailTest.IsMatch' the application will hang. It doesn't throw an exception, just hangs there for ages (possible infinite loop bug in RegEx class??). Wrapping a try catch around it does nothing either.

Anyone know what could be going on?

Dominic Pettifer

Blog: www.dominicpettifer.co.uk

GeneralRe: RegEx bug in .NET Framework!! Pin
Judah Gabriel Himango13-Jul-07 7:43
sponsorJudah Gabriel Himango13-Jul-07 7:43 
GeneralRe: RegEx bug in .NET Framework!! Pin
Malcolm Smart13-Jul-07 10:34
Malcolm Smart13-Jul-07 10:34 
GeneralRe: RegEx bug in .NET Framework!! Pin
Scott Dorman13-Jul-07 10:54
professionalScott Dorman13-Jul-07 10:54 
GeneralRe: RegEx bug in .NET Framework!! Pin
Paul Conrad13-Jul-07 10:58
professionalPaul Conrad13-Jul-07 10:58 
GeneralRe: RegEx bug in .NET Framework!! Pin
Dan Neely13-Jul-07 11:02
Dan Neely13-Jul-07 11:02 
GeneralRe: RegEx bug in .NET Framework!! Pin
Paul Conrad13-Jul-07 11:35
professionalPaul Conrad13-Jul-07 11:35 
GeneralRe: RegEx bug in .NET Framework!! Pin
Judah Gabriel Himango13-Jul-07 11:22
sponsorJudah Gabriel Himango13-Jul-07 11:22 
GeneralRe: RegEx bug in .NET Framework!! Pin
Paul Conrad13-Jul-07 11:38
professionalPaul Conrad13-Jul-07 11:38 
GeneralRe: RegEx bug in .NET Framework!! Pin
Michael Sync13-Jul-07 21:18
Michael Sync13-Jul-07 21:18 
QuestionMySQL inserting UnicodeStr Pin
pnpfriend13-Jul-07 6:48
pnpfriend13-Jul-07 6:48 
AnswerRe: MySQL inserting UnicodeStr Pin
Giorgi Dalakishvili13-Jul-07 7:03
mentorGiorgi Dalakishvili13-Jul-07 7:03 
GeneralRe: MySQL inserting UnicodeStr Pin
pnpfriend13-Jul-07 8:46
pnpfriend13-Jul-07 8:46 
GeneralRe: MySQL inserting UnicodeStr Pin
Giorgi Dalakishvili13-Jul-07 8:50
mentorGiorgi Dalakishvili13-Jul-07 8:50 
GeneralRe: MySQL inserting UnicodeStr Pin
pnpfriend13-Jul-07 9:30
pnpfriend13-Jul-07 9:30 
Questionexcel is behaving strange Pin
m@u13-Jul-07 6:44
m@u13-Jul-07 6:44 
AnswerRe: excel is behaving strange Pin
Paul Conrad13-Jul-07 11:59
professionalPaul Conrad13-Jul-07 11:59 
Questionwritting error code in master page Pin
daku113-Jul-07 6:26
daku113-Jul-07 6:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.