fork download
  1. const nomes = [ "'''' ''''", "÷÷÷ ÷÷÷", "123 456", "__ __"];
  2.  
  3. nomes.forEach(nome => {
  4. console.log(nome, ">", /^[\wà-ü']{2,}(\s+[\wà-ü']{2,})+$/i.test(nome))
  5. })
Success #stdin #stdout 0.09s 31840KB
stdin
Standard input is empty
stdout
'''' '''' > true
÷÷÷ ÷÷÷ > true
123 456 > true
__ __ > true