Uses regexp intelligently instead of splitting each word in the text