$pee = preg_replace( '|<p>|', '$1<p>', $pee );
This regular expression is from the WordPress source code (formatting.php, wpautop function); I’m not sure what it does, can anyone help?
Actually I’m trying to port this function to Python…if anyone knows of an existing port already, that would be much better as I’m really bad with regex.
wordpress really calls a variable ‘pee’ ?
I’m not sure what the $1 stands for (there are no braces in the first parameter?), so I don’t think it actually does anything, but i could be wrong.