I am using regexp in php I want to use use in regexp like thatI can use it but error is popupHow can solve this problem.please guide me.suppose here $url is dinamically changed like that
$preg_wurl = '/^'.$url.'/i';
$wurl = preg_grep($preg_wurl,$urls);
$spreg_wurl = stripslashes($preg_wurl);
echo '<h1>'.$spreg_wurl.'</h1>';
Error:
Warning: preg_grep() [<a href='function.preg-grep'>function.preg-grep</a>]: Unknown modifier '/' in C:\wamp\www\PHP\get website link.php on line 33