Updated regex; added error checks; calculated actual exchange rates