Jason B

Jason B

  • NA
  • 1
  • 2.1k

Create rules parse string location

Aug 19 2010 2:19 PM

Okay, Im running into a mind bender (at least for me)
Trying to take a string, ie.
{variable1}-{variable2}-{variable3}
and parse a file based on that rule.. ie.  Var3-Var1-Var2 
then turn it into name/value pairs so I can properly assign them...
var1 = var1foundinstring
var2 = var2foundinstring
var3 = var3foundinstring
 
Let me know if im not being specific enough, or if you need more information. Im just tryin to figure out best way of doing it, ie. A case, or array etc.. The delimiter will always be the same (at least for now)