title: Refactoring 2 Regexps
body: <p>I want to split the string</p>
  <pre><code>smartcode = '{{question.answer}}'
  </code></pre>
  <p>to obtain just eventually</p>
  <pre><code>'answer'
  </code></pre>
  <p>I know this works</p>
  <pre><code>smartcode.split(/\{{(.*?)\}}/).last.split(/\.(?=[\w])/).last
  </code></pre>
  <p>but it's not the better way i guess...</p>