I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers.

This is how I imagine Samuel L. Jackson leading off a conversation with the writers of the PHP language (edited to be less obscene and offensive).

In the name of all that is holy and right, please explain to me why the fuck PHP's preg_replace() takes delimiters for the first argument, but not the second. IOW, Perl's

$foo =~ s/baz/bum/;

becomes

preg_replace('/baz/', 'bum', $foo);

Yes, I should've just RTFM. You're completely right. But this just bit me in the ass, after spending 10 minutes wondering WTF was going wrong, and a little fucking consistency goes a long fucking way.