ex (n.)youdaoicibaDictYouDict[ex 词源字典]
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."[ex etymology, ex origin, 英语词源]