I know they both roughly mean "example", but which one should I use, and when?
E.g. is short for exempli gratia and stands for "for example". Ex., if used to mean the same, is incorrect. Mostly ex. is used as short for exercise and not "for example".
"Ex." is not very common, but it may be used to refer to a cited example, eg "See ex. 3".
"E.g." is much more common, and is used to introduce an example, or series of examples. In speech, it is usually replaced by "for example".
protected by tchrist Dec 2 at 3:20
Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.
Would you like to answer one of these unanswered questions instead?