From: anitawa Date: 2007-07-20T09:45:06+09:00 Subject: simple question 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.