title: very magic regex that will allow me to replace these images?
body: <p>I'm using vim daily for manipulating text and to write code. However, every time I have to perform any substitution, or do any kind of regex work, it drives me crazy, and I have to switch to sublime. I'd like to know, what's the correct way of turning this:</p>
  
  <pre><code>&lt;img src="whatever.png"/&gt;
  &lt;img src="x.png"/&gt;
  </code></pre>
  
  <p>into</p>
  
  <pre><code>&lt;img src="&lt;%= image_path("whatever.png") %&gt;"/&gt;
  &lt;img src="&lt;%= image_path("x.png") %&gt;"/&gt;
  </code></pre>
  
  <p>In sublime, I can use this as the regex for search: <code>src="(.*?.png)"</code> and this as the regex for substitution: <code>src="&lt;%= asset_path("\1") %&gt;"</code>. In vim, if I do this: <code>:%s/\vsrc="(.*?.png)/src="&lt;%= asset_path("\1") %&gt;"/g</code> I get:</p>
  
  <pre><code>E62: Nested ?
  E476: Invalid command
  </code></pre>
  
  <p>What am I not doing right?</p>