title: How to select all occurrences of regular expression in a single field of SQL
body: <p>I need to get list of all occurrences of specific regular expression in a single record of SQL</p>
  
  <p>for example I have record like this:</p>
  
  <pre><code>=&gt; 'Dear {0}, your account will expire in {1} days'
  </code></pre>
  
  <p>I stored this string in a table and I want to select all occurrences of '{something}'</p>
  
  <p>in this example:</p>
  
  <pre><code>=&gt;     {0}
         {1}
  </code></pre>
  
  <p>what should I do ???</p>