title: Using regex to find an exact pattern match in Ruby
body: <p>How would I go about testing for an exact match using regex.</p>
  
  <p><code>"car".match(/[ca]+/)</code> returns true.</p>
  
  <p>How would I get the above statement to return false since the regex pattern doesn't contain an "r"? Any string that contains any characters other than "c" and "a" should return false.</p>
  
  <p>"acacaccc" should return true</p>
  
  <p>"acacacxcc" should return false</p>