|
-
May 1st, 2003, 11:51 AM
#1
Thread Starter
Let me in ..
VB/VB.Net/VBScript/JScript - Regular expressions to validate data ..
Regular Expressions to validate data against different data types ....
1. ZIP_USA : "^\d{5}-\d{4}$
2. ZIP_CANADA : ^[a-zA-Z][0-9][a-zA-Z][ ][0-9][a-zA-Z][0-9]$
3. Phone : ^\(\d{3}\)-\d{3}-\d{4}$
4. e-mail : ^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$
5. Currency : ^\d*\.{0,1}\d+$
6. Double : ^-{0,1}\d*\.{0,1}\d+$
7. Single : ^-{0,1}\d*\.{0,1}\d+$
8. Integer : ^-{0,1}\d+$
Last edited by techyspecy; May 2nd, 2003 at 11:18 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|