I'm trying to use the php regex command. My string is
localhost/uploads/125b77ed75d78dcba94f7527c9691c7b6cc20793/
Both the lines below return "1":
$dest = "localhost/uploads/125b77ed75d78dcba94f7527c9691c7b6cc20793/";
$res = preg_match ( '/^localhost\/uploads\/*./' , $dest);
and
$dest = "localhost/uploads/125b77ed75d78dcba94f7527c9691c7b6cc20793/";
$res = preg_match ( '/^localhost\/upload\/*./' , $dest);
The regex command seems to be ignoring the "s" character entirely. Am I missing something here?
Thanks in advance