I\'ll do some work on a line separated string. Which one will be faster, to split the text via String.split first and then walk on the resultant array or directly walk the w
I expect that using split() will be much faster. It depends upon many specifics, number of lines vs. length, complexity of regex, etc.