/ ^(?![ ]) # Doesn't start with a space .*? # Anything [a-z0-9]{5,12} # Has a 5..12 lowercases or digits in a row .* # Anything (?