Consider the following regex:
^[^-\s][a-zA-Z\sàèìòùÀÈÌÒÙáéíóúýÁÉÍÓÚÝâêîôûÂÊÎÔÛãñõÃÑÕäëïöüÿÄËÏÖÜŸçÇߨøÅ寿œ\d!@#$\+%&\'*]{1,20}$
I did try it on https://regexr.com/ using as test Collection '98 and matches.
I then did implement it in Node.js:
const myRegex = '^[^-\s][a-zA-Z\sàèìòùÀÈÌÒÙáéíóúýÁÉÍÓÚÝâêîôûÂÊÎÔÛãñõÃÑÕäëïöüÿÄËÏÖÜŸçÇߨøÅ寿œ\d!@#$\+%&\'*]{1,20}$';
const name = 'Collection \'98';
if (!name.match(myRegex))
  console.log('NOK');
else
  console.log('OK');
However, it always prints NOK.
Why doesn't the validation work via app?
 
     
     
    