Results 1 to 10 of 10

Thread: VB/VB.Net/VBScript/JScript - Regular expressions to validate data ..

Threaded View

  1. #1

    Thread Starter
    Let me in .. techyspecy's Avatar
    Join Date
    Aug 2002
    Location
    Back to VBF.
    Posts
    2,456

    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
  •  



Click Here to Expand Forum to Full Width