I have a string such as:
<?xml version="xyzt" standalone="112.0" sxcx="xcxc"?>
I want to extract the string to array where each element is an attribute of string such as [version="xyzt", standalone="112.0", sxcx="xcxc"]
.
I tried using string.scan(/\s\w+="\.*"/) do |block| puts block end
but I don't get a result.. Please tell me why and how I can do it.