improved regex to match words with diacritics
updated version