Hey guys,
@hugo13 - yep that does seem to work
@kuroi - I was starting to believe myself that this was the file i needed to change.
What i have done is this:
Lines 364 - 369
case 'regexp':
$searchArray = array('[', ']', '(', ')', '{', '}', '|', '*', '?', '.', '$', '^');
foreach ($searchArray as $searchTerm) {
$value = str_replace($searchTerm, '\\' . $searchTerm, $value);
}
return $this->prepare_input($value);
i changed the last line to this:
return addslashes($value);
which pretty much makes the above search array redundant. but for all those experiencing my problem this seem to fix it for me.
so the final bit displays as:
case 'regexp':
$searchArray = array('[', ']', '(', ')', '{', '}', '|', '*', '?', '.', '$', '^');
foreach ($searchArray as $searchTerm) {
$value = str_replace($searchTerm, '\\' . $searchTerm, $value);
}
return addslashes($value);
Enjoy
Andy.