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