Como probé con esta muestra sin carácter especial:
let x = new RegExp('^[A-Za-z\s0-9]+$'); // with no special char x.test('Hello world'); // should return true x.test('Hello world with something'); // should return true x.test(' Hello world'); // should return false x.test('Hello world '); // should return false x.test('Hello world'); // should return false