1 && preg_match('/^(\+\+)|(--)$/', $res[strlen($res)-2].$res[strlen($res)-1])) || // (strlen($str)>$i+2 && preg_match('/^(\+\+)|(--)$/', $str[$i+1].$str[$i+2])) || // preg_match('/^(\+\+)|(--)$/', $res[strlen($res)-1].$str[$i+1])// || // for example i+ ++j; // )) $res .= $current_char; // } else $res .= $current_char; // // // if the next charachter be a slash, detects if it is a divide operator or start of a regex // if (preg_match('/[({[=+\-*\/%&|!>