I have a need to loop through a large string with several eol characters and read each of these lines looking for characters. I could've done the following but I feel that its not very efficient as there could be more than 5000 characters in this large string.
var str = largeString.split("\n");
and then loop through str as an array
I cant really use jquery and can only use simple JavaScript.
Is there any other efficient way of doing this?