Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js regex valid name

//^[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());
}
 
PREVIOUS NEXT
Tagged: #js #regex #valid
ADD COMMENT
Topic
Name
5+4 =