Forum Moderators: coopster
I want to write a switch case, which stand true for all such values which has "rotate.php" in it, it is optional to have a query string with the page too. i want to match all such cases, for this i tried the following,
case preg_match("/rotate\.php(\?)?[\w\d=]*/",$bx[3]):
but it does not match even rotate.php in the url. i get correct value in $bx[3] but my regex is not working.
i want to match ,
starting with rotate.php following by anything.
even this one doesn't work
case preg_match("/^rotate/",$bx[3]):
means , start with rotate followed by anything