Date: 08/02/05 (Code WTF) Keywords: no keywords
preg_replace( '/('.preg_quote($search).')/i', '\\1', $word );
Source: http://www.livejournal.com/community/code_wtf/12674.html