Tokenizing

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I'm trying to extract the key/value pairs string like this:

[Status]
CurrTime = 1200
LastPlayQUpdate = 400
CurrVolume = -10
[End Status]

My first instinct is to use a regular expression to match values before and
after the '=', but there probably is a more efficient method.

Can anyone suggest a better approach?

Thanks,

Craig Buchanan


.