hello

I have a string like this

string = "hello -a apple -b butterfly -c cat -d dophin"

i would like to parse the string based on some reg exp so that i can
store it in a variable like so.

valuea = "apple"
valueb = "butterfly"
valuec = "cat"
valued = "dophin"

Could someone help me out.