I have a string like '102.3k'
I would like to convert this string with an engineer prefix notation to a float number.
http://en.wikipedia.org/wiki/Engineering_notation
Allowed prefixes are
posPrefixes = ['k', 'M', 'G', 'T', 'P', 'E', 'Z', 'Y']
negPrefixes = ['m', 'µ', 'n', 'p', 'f', 'a', 'z', 'y']
k means 10^3
M means 10^6
m means 10^-3
µ means 10^-6
I think I should use regex to do this but I have very few experience with regex.
edit: ideally the solution should also be able to convert any string so '102.3' (without prefix) should also be converted to float