title: Regex for number comparison?
body: <p>I would like to perform regex to return true/false if the input 5 digit from input matching data in database, no need to cater of the sequence, but need the exact numbers.</p>
  
  <p>Eg: In database I have 12345</p>
  
  <p>When I key in a 5 digit value into search, I want to find out whether it is matching the each number inside the 12345.</p>
  
  <p>If I key in 34152- it should return true</p>
  
  <p>If I key in 14325- it should return true</p>
  
  <p>If I key in 65432- it should return false</p>
  
  <p>If I key in 11234- it should return false</p>
  
  <p>Eg: In database I have 44512</p>
  
  <p>If I key in 21454- it should return true</p>
  
  <p>If I key in 21455- it should return false</p>
  
  <p>How to do this using php with regex</p>