js regex valid name

Solutions on MaxInterview for js regex valid name by the best coders in the world

showing results for - "js regex valid name"
Chahine
13 Apr 2016
1//^[a-z\u00C0-\u02AB'´`]+\.?\s([a-z\u00C0-\u02AB'´`]+\.?\s?)+$
2
3function isValidName(myval) {
4    var validCharactersRegex = /^[a-z\u00C0-\u02AB'´`]+\.?\s([a-z\u00C0-\u02AB'´`]+\.?\s?)+$/;
5 
6    return validCharactersRegex.test(myval.trim());
7}
8