This script will create the custom XML file for a custom DLP Template to be used in Exchange 2013 or Office 365 DLP. The script will create the entire file, top to bottom. It will also import the XML if requersted and even create a transport rule (testes in 2013 only). There is some customization with confidence and promimity. Multiple criteria can be created. All localizations are for US only at this point, but can be easily modified by you. It will not check the RegEx syntax, but will suggest where to check it out.