javascript regex match accented characters code example
Example 1: javascript regex match character from a set of characters
console.log(/[0123456789]/.test("in 1992"));
console.log(/[0-9]/.test("in 1992"));
console.log(/[abc]/.test("def"));
console.log(/[abc]/.test("cdef"));
Example 2: u017f javascript
var accentedCharacters = "àèìòùÀÈÌÒÙáéíóúýÁÉÍÓÚÝâêîôûÂÊÎÔÛãñõÃÑÕäëïöüÿÄËÏÖÜŸçÇßØøÅåÆæœ";
var regex = "^[a-zA-Z" + accentedCharacters + "]+,\\s[a-zA-Z" + accentedCharacters + "]+$";
regexCompiled = new RegExp(regex);