I try to find and stock in HTML paragraphe all the word.
Actually, I have a function like this
p.html(function(index, oldHtml) { return oldHtml.replace(/\b(\w+?)\b/g, '<span>$1</span>'); }); But it's only return word without accent. I test on regex101.com https://www.regex101.com/r/jS5gW6/1
Any idea ?
\wdoes not recognize accented characters as 'word' characters, and another part is that\binternally uses the definition of\wto scan for word boundaries. So, even addingéandçto a class with\wdoes not solve everything.