I have a name="value" type string that looks like…
{user type="active" name="james green" id="45" group="active users"}
I need a generic function that will parse this type of string extracting all of the name/value pairs as an array from this format (always within double quotes and each param sepertated by a space, enclosed in {}) as well as the initial opening word (user in this case).
Any ideas would be much appreciated.
basically