Topic: I was able to replace them with preg_match commands

Now I am getting the following errors:

Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in

Warning: preg_match() [function.preg-match]: No ending matching delimiter '>' found in

How do I go about this?

2 (edited by 2013-01-16 10:05:36)

Re: I was able to replace them with preg_match commands

You have changed the command to preg_match but you have not added the end delimeter.

You always need a delimiter with preg_match and preg_replace
Like this
if(!preg_match("^$self^",$HTTP_REFERER) and $HTTP_REFERER != ""){
and this
$title = preg_replace("/<[^>]*>/","",$title);

Note the delimiter ^ at the beginning and the end of $self.
It does not matter what character you use for the delimeters but they must both be the same.
You can use  / or ^ or >.