/\s/ should be /\s+/ unless the empty string between two spaces counts as a word.
In reply to Re^2: Truncate Data from MySQL by mzedeler in thread Truncate Data from MySQL by rich731