I'm attempting to replace American style letter grades with the appropriate grade point. For example, A becomes 4.0, A- becomes 3.7, B+ becomes 3.3, etc.
I can't seem to get the regular expressions right using sub to make the changes. I'm having trouble getting it to recognize for example that B, B+, and B- are all separate things, probably because I can't get it make the regular expressions right.