title: Detect random strings
body: <p>I am building a string to detect whether filename makes sense or if they are completely random with PHP. I'm using regular expressions.</p>
  
  <p>A valid filename = <code>sample-image-25.jpg</code></p>
  
  <p>A random filename = <code>46347sdga467234626.jpg</code></p>
  
  <p>I want to check if the filename makes sense or not, if not, I want to alert the user to fix the filename before continuing.</p>
  
  <p>Any help?</p>