使用正则表达式逃脱的网站网址

My code is

<?php
$crunch = "http://thecruncworld.com";
$something = preg_match'/('/^(([\w]+:)?\/\/)?(((([\d\w]|%[a-xA-x\d]{2,2})/'
echo $something;
?>

Here i just need to escape my website url with regex .When i execute this code i am getting an error like this ..

( ! ) Parse error: syntax error, unexpected ''/('' (T_CONSTANT_ENCAPSED_STRING) in C:\wamp\www\yeah.php on line 3

Is it possbile on regex ..If its possible please tell me how ..

My recommendation would be to use an already set up function, such as urlencode() to escape data for inclusion in a URL. For more info, see this page: http://us1.php.net/urlencode