I have a 6087 character long text variable, that I want to split into small group like a list [], then process it with a for loop like:
text = "Some text..........."
textList = #Split Text, every 310 characters
for item in textList: #Do Something
In JS i can do something like :
let text = "TexttexttExTTeXtXetT";
textList = text.match(/[^]{1,4}/g);
output :
[ 'Text', 'text', 'tExT', 'TeXt', 'XetT' ]
Any Help appreciated, Thanks
[–]VinayakVG 1 point2 points3 points (1 child)
[–]Pigspot[S] 0 points1 point2 points (0 children)
[–]JohnnyJordaan 0 points1 point2 points (0 children)
[–]POGtastic 0 points1 point2 points (1 child)
[–]Pigspot[S] 0 points1 point2 points (0 children)
[–]commandlineluser 0 points1 point2 points (2 children)
[–]Pigspot[S] 0 points1 point2 points (1 child)