I want to pull the tokens out of this string and build an array (this is a simplified example):
SELECT * FROM {token1} WHERE {token2}
So I have an array of two elements:
myArray[0] = "token1"
myArray[1] = "token2"
Is there a clever way to do this without iterating through the string?
I also don't want duplicates in the array, so
The quick {token1} dog {token2} over the {token1} wall
Will give;
myArray[0] = "token1"
myArray[1] = "token2"
(The real reason for this, is for using dates in the SQL statements.)
Mick