I want to be able to extract key/value pairs from a string but I am not
succeeding. Experimenting and googling for a few hours didn't get me
anywhere so I'm hoping for help here. My input string could look
something like this:
some_var=yellow another_var = "blue and red" third_var= 'pink'
The values could be enclosed in single quotes, double quotes or no
quotes at all as you can see. Is it possible to make a regular
expression to extract these and if so, how?
Thanks
/MB
succeeding. Experimenting and googling for a few hours didn't get me
anywhere so I'm hoping for help here. My input string could look
something like this:
some_var=yellow another_var = "blue and red" third_var= 'pink'
The values could be enclosed in single quotes, double quotes or no
quotes at all as you can see. Is it possible to make a regular
expression to extract these and if so, how?
Thanks
/MB
Comment