Hey guys!
I need to pick in a text everything before and after a character.
What need to use? Regex? Or something else?
Example: -Text: 100,Hello --Button1 Result: 100 ---Button2 Result: Hello[/code:2tlpdr0l] So what i need is to use 2 different buttons, 2 different lines of code. The first button is to pick everything before "," symbol, so in this example we have "100" And the second button is to pick everything after "," symbol, so in this example we have "Hello" Any help? Thanks!
Tokenat() expression is perfect for this.
s="100,Hello"
Tokenat(s, 0, ",") will return "100"
Tokenat(s, 1, ",") will return "Hello"
Develop games in your browser. Powerful, performant & highly capable.
Thanks a lot!