I have a hash like this :
hash = {"user:**xy@xy.com** password:**azerty**"=>1,
"user:**yy@yy.com** password:**qwerty**"=>1}
How can I extract only the username (email) and the password of each element to use it separately.
With split method eventually. How to split a string from the second :
for example?
I want to have something like this
Username Password
xy@xy.com azerty
yy@yy.com qwerty