.NETGURU
reguliere expressies
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngnl' list.


Tim Musschoot
Hallo,

Ik wil een ingevulde waarde voor een textbox testen op geldigheid. Deze
moet voldoen aan volgend patroon:

[A-Z][A-Z] [1-9][0-9][0-9].[0-9][0-9][0-9].[0-9][0-9][0-9]

Hoe kan ik dit in C# verwezenlijken? Heeft iemand hier ervaring mee ?

mvg,
Tim
Reply to this message...
 
    
Pieter Dubelaar
Via System.Text.RegularExpression, volgens Google ten minste. Ik heb geen
ervaring met Reg. expressions in C#, maar over het algemeen is het voor elke
taal hetzelfde.

http://windows.oreilly.com/news/csharp_0101.html
<http://windows.oreilly.com/news/csharp_0101.html> was het eerste resultaat
dat naar boven kwam :)

Match m = RE.Match("mijnstring", "[A-Z]{2}[1-9][0-9]{2}.[0-9]{3}.[0-9]{3}");

Ik neem even aan dat de punten in je expressie een willekeurig karakter
voorstellen, anders zou het \. zijn. Hetzelfde wat de spatie tussen [A-Z] en
[1-9] betreft, volgens mij doet hij hier standaard niets mee, tenzij je er
een \s van maakt :)

Groetjes
Pieter

-----Original Message-----
From: Tim Musschoot [mailto:Click here to reveal e-mail address]
Sent: Tuesday, May 21, 2002 3:34 PM
To: aspngnl
Subject: [aspngnl] reguliere expressies

Hallo,

Ik wil een ingevulde waarde voor een textbox testen op geldigheid. Deze
moet voldoen aan volgend patroon:

[A-Z][A-Z] [1-9][0-9][0-9].[0-9][0-9][0-9].[0-9][0-9][0-9]

Hoe kan ik dit in C# verwezenlijken? Heeft iemand hier ervaring mee ?

mvg,
Tim
| [aspngnl] member Click here to reveal e-mail address = YOUR ID |
http://www.asplists.com/asplists/aspngnl.asp = JOIN/QUIT
Reply to this message...
 
    
Michiel van Otegem
ASP.NET? Gebruik de RegularExpressionValidator.

---
Michiel van Otegem
ASPFriends.com Moderation Team

ASPNL.com - ASP/ASP.NET/XML Teacher
http://www.aspnl.com
http://www.aspalliance.com/michiel
---
Teach Yourself XSLT in 21 Days
http://www.amazon.com/exec/obidos/ASIN/0672323184/aspnlcom-20
----- Original Message -----
From: Tim Musschoot
To: aspngnl
Sent: Tuesday, May 21, 2002 3:34 PM
Subject: [aspngnl] reguliere expressies

Hallo,

Ik wil een ingevulde waarde voor een textbox testen op geldigheid. Deze moet voldoen aan volgend patroon:

[A-Z][A-Z] [1-9][0-9][0-9].[0-9][0-9][0-9].[0-9][0-9][0-9]

Hoe kan ik dit in C# verwezenlijken? Heeft iemand hier ervaring mee ?

mvg,
Tim
| [aspngnl] member Click here to reveal e-mail address = YOUR ID | http://www.asplists.com/asplists/aspngnl.asp = JOIN/QUIT
Reply to this message...
 
 
System.Web.UI.MobileControls.RegularExpressionValidator
System.Web.UI.WebControls.RegularExpressionValidator




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification