That depends who you are, who you're marrying, and where you live. Divorces are only this expensive and drawn out in a handful of countries, and milking your ex-partner for all they're worth is a similarly non-universal trait.
Further, some people simply don't have this mentality or a single retributory bone in their body. Those are the people you marry.