Regex question..
Posted: Mon Oct 18, 2004 1:11 pm
hello ppl... I have a regex problem.
Let's say i want to match a specific string from the HTTP_REFERER var. I use this code:
The pages that the above regex must match are:
any suggestions?
Thanx in advance,
Nick
Let's say i want to match a specific string from the HTTP_REFERER var. I use this code:
Code: Select all
<?php
if(preg_match("/^(http:\/\/)www\.domain\.com\/new\/site\/disp/i", getenv("HTTP_REFERER")) {
// code to allow download goes here
}
?>so i want one regex to match all... But it doesn't work
Thanx in advance,
Nick