title: Sublime Text 2 regular expression for SCSS/ERB URLs
body: <p>I've been trying to wrap my head around Sublime Text regular expressions all evening and haven't gotten anywhere. With an example string of:</p>
  
  <pre><code>url(/assets/content.png);
  </code></pre>
  
  <p>How can I replace the ends to produce this?</p>
  
  <pre><code>url('&lt;%= asset_path('content.png') %&gt;');
  </code></pre>
  
  <p>While I was able to construct expressions that match this pattern, namely</p>
  
  <pre><code>\/assets\/\w*.\w{3}\);
  </code></pre>
  
  <p>I can't figure out how to replace the appropriate pieces. What should I do?</p>