r = /\$(?<dollars>\d+)\.(?<cents>\d+)/
s = '$3.aa'
if match_data = r.match(s) then
puts match_data[:dollars]
puts match_data[:cents]
else
puts 'no match'
end
ciA9IC9cJCg/PGRvbGxhcnM+XGQrKVwuKD88Y2VudHM+XGQrKS8KcyA9ICckMy5hYScKCmlmIG1hdGNoX2RhdGEgPSByLm1hdGNoKHMpIHRoZW4KICBwdXRzIG1hdGNoX2RhdGFbOmRvbGxhcnNdCiAgcHV0cyBtYXRjaF9kYXRhWzpjZW50c10KZWxzZQogIHB1dHMgJ25vIG1hdGNoJwplbmQK