1 2 3 4 5 6 7 8 9 10 11 12 |
if un =~ /^[A-Za-z][A-Za-z0-9]+/ then true else false end end if pw =~ /[A-Za-z0-9]{4,}/ then true else false end end if sex =~ /(Male)|(Female)/ then true else false end end |
Pastie
Support Pastie
or read my
Pastie << self
blog
1 2 3 4 5 6 7 8 9 10 11 12 |
if un =~ /^[A-Za-z][A-Za-z0-9]+/ then true else false end end if pw =~ /[A-Za-z0-9]{4,}/ then true else false end end if sex =~ /(Male)|(Female)/ then true else false end end |