as already said, just take all the words that don't match the MD5 hashes.
(firstly you need to split the line)
var s = "8e85d8b3be426bc8d370facdb0ad3ad0\nstring\nstringString\n63994b32affec18c2a428cdfcb0e2823\nstringSTRINGSTING333\n34563994b32dddddddaffec18c2a\nstringSTRINGSTINGsrting"; words = []; words_all = s.split(/\s+/); for (i in words_all) { word = words_all[i]; if (! word.match(/^[a-fA-F0-9]{32}$/)) { words.push(word) } } // words = ["string", "stringString", "stringSTRINGSTING333", "34563994b32dddddddaffec18c2a", "stringSTRINGSTINGsrting"]
(assuming that according to your source code you want to use javascript)
source share