A step by step tutorial teaching you how to create your own chat client and chat server easily in C#, for local networks or the Internet.
A C# tutorial showing you how to make use of WMI to extract information on disk drives, such as model, capacity, sectors and serial number.
This tutorial will teach you how to calculate the shipping cost based on the weight, height, length and depth of the box, the distance and the UPS service type.
Creating a Rich Text Editor using JavaScript is easier to do than you might think, thanks to the support of modern browsers; this tutorial will walk you through it.
Validate String For Positive Integer ValuesA very simple way to validate a string for positive integer values using C# and regular expressions. |
On Saturday, October 18th 2008 at 05:00 AM By Andrew Pociu (View Profile) ![]() ![]() ![]() ![]() (Rated 4.2 with 5 votes) |
||
|
|||
Digg It!
Del.icio.us
Reddit
StumbleIt
Newsvine
Furl
BlinkList
|
|||
|
|||
Current CommentsIt's was nice tutorial.
thanks for sharing.
but what if the string is " 1235"?
the pattern should be changed
Regex rxNums = new Regex(@"^\ ?\d $");
*the right code
Regex rxNums = new Regex(@"^ \ ? \ d $");
*remove the space char on the string.
Related Source Code
Related Tutorials
C# Job Search