Posted By


z0rg on 07/30/07

Tagged


Statistics


Viewed 469 times
Favorited by 1 user(s)

check_name_syntax


/ Published in: Rails
Save to your folder(s)



Copy this code and paste it in your HTML
  1. def check_name_syntax
  2. !!((first_name + last_name).strip =~ /^[a-z '.-]+$/i)
  3. end
  4.  

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.