title: Regular Expression for Pseudocode - Trim Spacing
body: <p>I have a Regex here: <code>\[link=["](?&lt;href&gt;[^"]+)["]\](?&lt;title&gt;[^\[]+)\[/link\]</code> and a replace string here: <code>&lt;a href=\"${href}\" target=\"_blank\"&gt;${title}&lt;/a&gt;</code></p>
  
  <p>It takes this string <code>[link="http://www.cnn.com"]CNN Webpage[/link]</code> and converts it to this: <code>&lt;a href="http://www.cnn.com" target="_blank"&gt;CNN Webpage&lt;/a&gt;</code></p>
  
  <p>I need to amend it to take into account any leading/trailing spaces in either capture group, and trim them out in the replace string. 
  ex: <code>[link="http://www.cnn.com "] CNN Webpage[/link]</code> to <code>&lt;a href="http://www.cnn.com" target="_blank"&gt;CNN Webpage&lt;/a&gt;</code></p>
  
  <p>Regex is not my strong suit. Any help appreciated!</p>