I have a delimited string which acts as a key for a target delimited string. I need to know where 2 values are in the key sequence, and then pull only those positions from my target string.
Example 1
Key : ,15,90,104,73,95,13,14,
Target : Medium~Male~28~Green~Right~No~10/04/2013
Example 2
Key : ,14,73,104,95,15,13,90,
Target : 12/03/2013~Green~28~Right~Medium~No~Male~
I only care about the gender and date values in the target and the corresponding entries in the key will always be 14 and 90
Once I know where those values are sequentially (positions 2 & 7 in example 1), I need to pull out the same sections of my target string so I end up with the gender and the date values in their own variables
I have changed the type of data I'm looking for to make the question easier to understand
I hope that made sense
Thanks
Matt