Regular Expressions in .NET
-
Can anyone help me? I`ve just started my adventure with .NET. I want use regular expression in my text box to validate text. For example reg. expression like this : "[0-9][0-9]-[0-9][0-9[0-9]" accepts only for example "43-456" text. What if I enter "54-8f5" ? .NET Regular Expressions tells me that this text is not correct. But it doesn`t tell me which character is invalid. My problem is that I want .NET show me which character (which character index in this incorrect string) is invalid. Can anyone help with this? conrados
-
Can anyone help me? I`ve just started my adventure with .NET. I want use regular expression in my text box to validate text. For example reg. expression like this : "[0-9][0-9]-[0-9][0-9[0-9]" accepts only for example "43-456" text. What if I enter "54-8f5" ? .NET Regular Expressions tells me that this text is not correct. But it doesn`t tell me which character is invalid. My problem is that I want .NET show me which character (which character index in this incorrect string) is invalid. Can anyone help with this? conrados
conrado7 wrote:
Can anyone help me?
Yes, but not here. You could try one of the programming forums[^].
My: Blog | Photos "Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucious
-
conrado7 wrote:
Can anyone help me?
Yes, but not here. You could try one of the programming forums[^].
My: Blog | Photos "Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucious
-
Can anyone help me? I`ve just started my adventure with .NET. I want use regular expression in my text box to validate text. For example reg. expression like this : "[0-9][0-9]-[0-9][0-9[0-9]" accepts only for example "43-456" text. What if I enter "54-8f5" ? .NET Regular Expressions tells me that this text is not correct. But it doesn`t tell me which character is invalid. My problem is that I want .NET show me which character (which character index in this incorrect string) is invalid. Can anyone help with this? conrados
You might also want to check out: [http://www.codeproject.com/dotnet/expresso.asp](http://
http://www.codeproject.com/dotnet/expresso.asp)[[^](http://
http://www.codeproject.com/dotnet/expresso.asp)] I use this all the time! Also you might want to check into: http://www.regular-expressions.info/tutorial.html[^] http://msdn.microsoft.com/library/en-us/cpgenref/html/cpconregularexpressionslanguageelements.asp[^] http://www.devarticles.com/c/a/Java/Regular-Expressions/[^] Rocky <>< Latest Post: Snippet C# Compiler & More.. Blog: www.RockyMoore.com/TheCoder/[^]