Forum Moderators: coopster
Why is this occuring?
Warning: Compilation failed: nothing to repeat at offset 2 in /home/httpd/vhosts/devdomain.com/httpdocs/inc/functions.inc.php on line 68
$find = strtolower($_POST['find']);
$replace = strtolower($_POST['replace']);
$keywords = trim(strtolower($_POST['keywords']));if ($_POST['replace_words'] == "Replace Words") {
if ($find!= "" AND $find!= NULL) {$PATTERNS = "/\b" . $find . "\b/";
$REPLACEMENTS = $replace;
$temp .= preg_replace($PATTERNS, $REPLACEMENTS, $keywords);
// The ABOVE LINE IS LINE 68 in the script
Resources:
Regular Expression Functions (Perl-Compatible) [php.net]
Regular Expressions [webmasterworld.com]
Regular Expressions Tutorial [etext.lib.virginia.edu]