title: MSBuild Community Taks RegexReplace remove trailing slash from path
body: <p>I am trying to use MSBuild community tasks to remove the slash from the end of the OutputPath </p>
  
  <p>This is what i have so far.</p>
  
  <pre><code>&lt;RegexReplace Input="$(OutputPath)" Expression="\$" Replacement="" Count="1"&gt;
   &lt;Output ItemName="FormattedOutputPath" TaskParameter="Output" /&gt;
  &lt;/RegexReplace&gt;
  &lt;Message Text="@(FormattedOutputPath)"/&gt;
  </code></pre>
  
  <p>Unfortunately the message just returns my path still with the slash on the end.
  The path is C:\MyDirectory\</p>
  
  <p>It looks like my expression is incorrect</p>
  
  <p>Can anyone help?</p>