Anyone have a moment to help with a coding problem? I'm trying to make the acronym replacer case sensitive and when I follow the included instructions, I get an error that tells me I have an unexpected $ on line 187, but line 187 doesn't have a $. I only made two changes - I added the /// (I tried 2 and 3, neither fixed the problem) to this line:
/// $text = preg_replace("|(?!<[^<>]*?)(?<![?./&])\b$acronym\b(?!:)(?![^<>]*?>)|imsU","$acronym" , $text);
and removed the slashes from these lines:
$text = preg_replace("|([^./]\b)$acronym(\b[^:])|msU" , "$1$acronym$2" , $text);
$text = preg_replace("|(<[A-Za-z]* [^>]*)$acronym([^<]*>)|msU" , "$1$acronym$2" , $text);
Please help! With sugar on top?