<?php
/*
Plugin Name: Nofollow In Posts
Plugin URI: http://wordpress.org/support/topic/85214
Description: Inserts rel="nofollow" into post content URLs.
Version: R1.0.1
Author: Kaf Oseo
Author URI: http://szub.net

    Copyright (c) 2006 Kaf Oseo (http://szub.net)
    Nofollow In Posts URLs is released under the GNU General Public
    License (GPL) http://www.gnu.org/licenses/gpl.txt

    This is a WordPress plugin (http://wordpress.org).

Props to kubicka.
*/

function nofollow_in_posts($text) {
        
$text preg_replace('%<a(\s+.*?href=\S(?!' get_bloginfo('home') . '))%i''<a rel="nofollow"\\1'$text);

    return 
$text;
}

add_filter('the_content''nofollow_in_posts'42);
?>