I am making an android calculator and trying to get it to split the string when it encounters an operator (for example "*"). However, val one returns the entire string 20x20 instead of 20.
fun main() {
var equation = "20*20"
val splitValue = equation.split("[/*-+]")
var one = splitValue[0]
println(one)
}