title: How can I check if a string EXACTLY matches a regex pattern?
body: <p>I'm working on a registration script for my client's product sales website.</p>
  
  <p>I'm currently working on a reference ID input area, and I want to make sure that the reference ID is within the correct parameters of the payment method</p>
  
  <p>The Reference ID will look something like this: <code>XXXXX-XXXXX-XXXXX</code></p>
  
  <p>I'm trying to use this RegEx pattern to match it: <code>/(\w+){5}-(\w+){5}-(\w+){5}/</code></p>
  
  <p>This matches it perfectly, but it also matches <code>XXXXX-XXXXX-XXXXXXXXXX</code></p>
  
  <p>Or at least it finds a match in there. I want it to make sure the entire string matches. I'm not too familiar with RegEx</p>
  
  <p>How can I do this?</p>