JSFiddle - React, Tailwind, and code Playground

JavaScript

reg=/[a-zA-Z0-9éèêëàáâäóòôöíìîïçÉÈÊËÀÁÂÄÒÓÔÖÌÍÎÏÇ-]{3,}/g;
chaine="une chaine avec des mots de plus de lettres";

tabmots=chaine.match(reg);
console.log(tabmots)