/saddlebrown-firm-leather-wallet this is my string , i want /firm-leather-wallet The regular expression i want to create should remove the first word of the string after the slash and return the string with the slash intact . this is my code
<?php
function remove($string) {
$string = str_replace('/^\/[a-zA-Z]+-/', '', $string);
return $string;
}
?>