ex (n.) Look up ex at Dictionary.com
1827, originally short for ex-Catholic; ultimately from Latin ex (see ex-). Since 1929 as abbreviation for ex-wife, ex-husband, etc. Also used in some commercial senses for "from, out of."