PHP Classes

escaping "/"

Recommend this page to a friend!

      Text Search Replace  >  All threads  >  escaping "/"  >  (Un) Subscribe thread alerts  
Subject:escaping "/"
Summary:can't seem to escape "/" for url matching
Messages:1
Author:Randy Ahn
Date:2007-01-14 22:14:09
 

  1. escaping "/"   Reply   Report abuse  
Picture of Randy Ahn Randy Ahn - 2007-01-14 22:14:09
Thanks for any help:

I tried to set the pattern:
$obj->setSearchKey('mydomain\.com\/');

and get this error:
Warning: preg_match_all() [function.preg-match-all]: Unknown modifier '/' in /home/mypath/TextSearch.class.php on line 178