title: Can someone give me an example of regular expressions using {x} and {x,y}?
body: <p>I just learned from a book about regular expressions in the Ruby language. I did Google it, but still got confused about <code>{x}</code> and <code>{x,y}</code>.</p>
  
  <p>The book says:</p>
  
  <blockquote>
    <p>{x}→Match x occurrences of the preceding character.<br>
    {x,y}→Match at least x occurrences and at most y occurrences.</p>
  </blockquote>
  
  <p>Can anyone explain this better, or provide some examples?</p>