No newlines / anything at the end ? (?![\S\s]) Only alphanum 7-bit ascii ? [a-zA-Z0-9]+
(?![\S\s])
[a-zA-Z0-9]+
put together :
^[a-zA-Z0-9]+(?![\S\s])