title: preg_match to validate a URL slug
body: <p>I am letting the user create their own profile on my site so they can choose what their url will be. So for example if their name is John Smith they might like to enter john-smith and then their profile URL would be www.mysite.com/john-smith.</p>
  
  <p>I need to use preg_match to validate that what they enter is a valid URL slug. So here are the rules that it must fulfill to be valid:</p>
  
  <p>it must contain at least one letter and it can only contain letters, numbers and hyphens</p>
  
  <p>Can someone help me out please I am good at PHP but rubbish with regex!</p>