Posted By

z0rg on 07/30/07


Tagged

textmate 1


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

webstic


check_name_syntax


 / Published in: Rails
 

  1. def check_name_syntax
  2. !!((first_name + last_name).strip =~ /^[a-z '.-]+$/i)
  3. end
  4.  

Report this snippet  

You need to login to post a comment.