scalar variables with this in php search patterns?
ex. (parenthesis substitued for html tags for display purposes)
$mesgdir = "bin";
$ext = "php";
preg_match('/(!--top: \d{1,6}--)(li)(a href=$mesgdir\/\d{1,6}.$ext)/'
Have tried escaping the $'s and . but it stops working if I include anything past href= and if possible I need to make it more specific.