Actually what most of those clauses are about is stating that only the contractual clauses that are inconsistent with the law are to be ignored, as opposed the entire contract being considered void.
However, I usually see this separately. For example (German):
"Es gilt das BGB". (The BGB is valid) -> No shit, sherlock.