I have the following Regex in PERL which I need to convert to PHP
if ($referrer_url =~ /\.$domain/) { }
I currently have the following in PHP to match it, but I'm not getting the same results:
if (preg_match("/\.$domain/", $referrer_url)) { }
Can anyone tell me if what I have is the same or if I'm mistaken? Thanks!