//^[a-zu00C0-u02AB'´`]+.?s([a-zu00C0-u02AB'´`]+.?s?)+$ function isValidName(myval) { var validCharactersRegex = /^[a-zu00C0-u02AB'´`]+.?s([a-zu00C0-u02AB'´`]+.?s?)+$/; return validCharactersRegex.test(myval.trim()); }