Aşağıdaki maç çalışıyor:
RawUrl = "http://www.domain.com/page/etc/"
the URL itself is variable and could contain all sorts! ? querystrings and more. Is there an escape function to make it regex safe?
Böylece şimdiye kadar bu var
$var is already defined..
$url = "www.adomain.com/with/extras/"
$url = str_replace(" \/ ","/",$url); // maybe more needed here.
$pattern = "/rawurl\=\"http\:\/\/$url/";
preg_match($pattern, $var, $out);
doğru regex biçimlendirme sorunlarınız, birkaç saat için şimdi çapraz gözlü sürdürmekteyiz. Herhangi bir yardım takdir ...