Input letters only

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Omg83191
    New Member
    • Aug 2012
    • 21

    Input letters only

    Is there a validation control to require the user to input only letters?
  • PsychoCoder
    Recognized Expert Contributor
    • Jul 2010
    • 465

    #2
    If this ASP.NET then you would use the RegularExpressi onValidator, then work on a regular expression pattern to allow only letters like this

    Code:
    [^a-zA-Z]
    That will allow only letters. Hope this helps.

    Happy Coding!

    Comment

    • Omg83191
      New Member
      • Aug 2012
      • 21

      #3
      Thankyou I have used that already and it works...
      ^a-zA-Z+_
      +_ I add that for the space,

      Comment

      • PsychoCoder
        Recognized Expert Contributor
        • Jul 2010
        • 465

        #4
        Glad I could help. Happy Coding!

        Comment

        • Omg83191
          New Member
          • Aug 2012
          • 21

          #5
          Hey I have another question... http://bytes.com/topic/visual-basic-...-work-properly

          Comment

          Working...