Is it possible to perform basic document sanitization tasks in Sharepoint 2010 or 2013? I would like to be able to trigger the sanitization task based on a set of user defined rule. Examples of content I would like to remove are references to customer names/contract values for documents in the library. I do not want redaction. For example, I want all specific customer names to be replaced with generic names such as (customer) and all numeric values representing contract amounts with a generic text such as (contract amount).
This could be done with custom code in an event receiver but it will likely to difficult to get it exactly right. For example how would the program determine a contract amount from any other amount?