Hey guys i'm reading lines from .obj files and i want to load them into some arrays but i need to correctly parse them.
I'm reading some lines like this: f 19/19/115 25/25/116 17/22/117
And i want to split them by the "/" but without deleting that character, this is the result i want to obtain:
[f,19,/,19,/,115,25,/,25,/,116,17,/,22,/,117]
And i'm when i do:
tokens = line.split("[/ ]+");
I'm getting:
[f, 19, 19, 115, 25, 25, 116, 17, 22, 117]