findEndSymols = 'это моя строка для теста, IT ALSO HAS ENGLISH WORDS. Начнём'; findEndSymols = findEndSymols.replace(/(\s+[a-zа-я0-9ё]+)(?=\s*$)/i,' '); alert(findEndSymols);