Jump to content


Validate Hyphens


  • You cannot reply to this topic
No replies to this topic

#1 Jshepp

    Young Padawan

  • Members
  • Pip
  • 11 posts
  • Gender:Male
  • Location:Canada
  • Interests:Creating websites, paintball, movies, hanging out.. you know, usual crap.

Posted 04 May 2007 - 06:33 PM

Hello. I have a text field in a form and I want to let hyphens through. Here is my validation pattern:

'^[[:alnum:]][a-z0-9\"\-\ ]{2,30}$'

Now, I would think this would allow hypens, but it doesn't. How can I make it so they will?

I hope this is clear, tell me if you don't understand and I'll try to make my purpose clearer.

Edited by Jshepp, 04 May 2007 - 06:33 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users