www.webdeveloper.com
Results 1 to 3 of 3

Thread: name validation

  1. #1
    Join Date
    May 2010
    Posts
    133

    name validation

    Does anybody here knows a regular expression validation that allows a name with quote like O'reilly

  2. #2
    Join Date
    May 2010
    Posts
    133
    I tried this but it does not work.
    PHP Code:
    if(!preg_match("/^[-_a-zA-Z']$/"$firstname

  3. #3
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    PHP Code:
    if(!preg_match("/^[-_a-zA-Z']+$/"$firstname
    At least 98% of internet users' DNA is identical to that of chimpanzees

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles