lucasdeveloper
3 years agoNewbie
Split a string with 140K lines
Hello Roku Team,
I have a response HTTP that returns a txt file with 1.3MB and 140k lines.
I would like split the string in an array. I'm using the follow regex:
text = searchRequest.getToString() reLineSplit = CreateObject ("roRegex", "(?>\r\n|[\r\n])", "") for each line in reLineSplit.Split (text) end for
But, it's taking time to run.
Do you have a suggestion for me?
Thanks in advance.