deregister some other plugins jquery

Have you ever needed to use a different version of jQuery than comes installed with WordPress. Well there is a simple way to do it.

function modify_jquery() {
    if (!is_admin()) {
        wp_deregister_script(\'jquery\');
    }
}
add_action(\'init\', \'modify_jquery\');