Metric Imperial Converter feedback

Hi Folks,

I just finished the metric imperial converter in the Info Security and Quality Assurance projects, and it would be great to get some feedback on my code. Let me know what you think or what you might do differently.

CODE

LIVE App

Thanks!

Your link does not work. For some reason the link like you did does not work fo glitch. It needs to be typed:

<a href=“yourGlitchLink”>my link</a>

Thanks. I just edited my post with markdown links.

CODE

LIVE App

The first thing I noticed is that 3 gal returns invalid number. I need to enter 3gal to get the conversion. This would be confusing to a user because 3 is a valid number. So your regex does not deal with the white space.