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 ..