Im writing a program that evaluates simple maths equations, e.g. (a + 13) * (b - 10 ) / c
I want to be able to read an input like above and get the variables used. Obviously if a variable appears twice I only want it once. I thought something like match \w?+.