split()
Posted: Thu Feb 28, 2008 12:17 am
posting.php?mode=post&f=1&sid=b84ba838a ... 6de44a2dc6#
:banghead:I was trying find the best way to split a user input array consisting of
if any 'x', 'y', 'z','^'.
EXAMPLE
I want to be able to take some number times a variable eg.
456x
Possibly even,
345xy^2.
Then, change the element that 'x' is stored in and change it to a new integer value. If possible perform the 'y^2' operation of course after replacing the 'y' with a integer value.
Or is this just way over my head
:banghead:I was trying find the best way to split a user input array consisting of
if any 'x', 'y', 'z','^'.
EXAMPLE
I want to be able to take some number times a variable eg.
456x
Possibly even,
345xy^2.
Then, change the element that 'x' is stored in and change it to a new integer value. If possible perform the 'y^2' operation of course after replacing the 'y' with a integer value.
Or is this just way over my head