Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- validates_format_of :username, :with => /([^a-zA-Z]*([a-zA-Z]+)[^a-zA-Z]*){3,}/
- /^[a-zA-Z]{3,}$/
- /^(?=(.*[a-zA-Z]){3})[allowed characters here]+$/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement