I am trying to figure out the "split", but, another option could be great too.


String to divide up: SETUP|variable1&Variable2

Now, in split, each one i've seen uses the 'foreach' statement in all of the examples.

I dont want the 'foreach', i want to be able to pull the variable1...and the variable2.

I know I can do the replace to ditch the SETUP|, so more so, how to pull to the left, and the right..of &