I just started using strings file in my projects. Or well, i’m trying to.
I had an error for a few days, and finally figured out you actually have to make strings in the file with “” and end the lines with a ; – that was a bummer to figure out 😉
Anywhoo, now i’m trying to get it sorted out and separated into smaller strings. It’s working like a charm, but i just can’t seem to get rid of the “” and ; on each line of the string.
For instance, i have this in my strings file (i’m separating by comma):
“This is a string,This is another string,And a final one”;
I am trying to get it into 3 different strings, and after having done it, it looks like this in my 3 strings objects:
“This is a string
This is another string
And a final one”;
So i need to remove the ” in string 1, and the ” + ; in string 3.
I hope it made sense. I really can’t seem to figure this one out, as i haven’t really worked with sorting around in strings too much, and yet alone working with a strings file.
Thanks on advance.
This should do the trick if ALL strings have the ” and “; at the beginning/end of the total string.
If you want to remove all occurances of ” and ; use this before splitting: