ryanpager
20th July 2009, 17:29
So heres my issue; maybe someone knows a little better than I do.
Im pulling a string value from my registry to find the location of an install so that I can use it later for copying files.
The only key that exists is a long one that has too much stuff in it
i.e. F:\accuwin\la\sdfsd\sdfsdf C:\sdf\sdf\sdf
Out of that string all I need is the "\accuwin\la\"
How do I go about parsing it so that the string gets stored with these values, or is that impossible. Is PCRE the possible solution, or is there an easier way?
Thanks in advance
Im pulling a string value from my registry to find the location of an install so that I can use it later for copying files.
The only key that exists is a long one that has too much stuff in it
i.e. F:\accuwin\la\sdfsd\sdfsdf C:\sdf\sdf\sdf
Out of that string all I need is the "\accuwin\la\"
How do I go about parsing it so that the string gets stored with these values, or is that impossible. Is PCRE the possible solution, or is there an easier way?
Thanks in advance