The StringReplace Task uses Regular Expressions to match and replace a value in the input string.

Example Usage:
    <StringReplace Pattern="\." InputString="$(CCNetLabel)" Replace="_">
      <Output PropertyName="ResultString" TaskParameter="Result" />
    </StringReplace>


Attribute Description Required Type Direction
Pattern The Regex pattern used to match the input string True String Input
InputString The string that is evaluated True String Input
Replace The Replacement string for the matching text True String Input
ECMAScript Indicates if ECMAScript should be set in the RegexOptions False Boolean Input
IgnoreCase Indicates if IgnoreCase should be set in the RegexOptions False Boolean Input
IgnorePatternWhitespace Indicates if IgnorePatternWhitespace should be set in the RegexOptions False Boolean Input
MultiLine Indicates if MultiLine should be set in the RegexOptions False Boolean Input
RightToLeft Indicates if RightToLeft should be set in the RegexOptions False Boolean Input
SingleLine Indicates if SingleLine should be set in the RegexOptions False Boolean Input
Result The resulting string from the replace N/A String Output

Last edited Feb 17, 2007 at 5:06 AM by camalot, version 3

Comments

No comments yet.