<regex>

[This is preliminary documentation and subject to change.]

Sets project properties based on the evaluatuion of a regular expression.

The pattern attribute must contain one or more named grouping constructs, which represents the names of the properties to be set. These named grouping constructs can be enclosed by angle brackets (?<name>) or single quotes (?'name').

Note: In the build file, use the XML element &lt; to specify <, and &gt; to specify >.

Note: The named grouping construct must not contain any punctuation and it cannot begin with a number.

Parameters

Attribute Type Description Required
input string Represents the input for the regular expression. True
pattern string Represents the regular expression to be evalued. True
options RegexOptions A comma separated list of options to pass to the regex engine. The default is None. False
failonerror bool Determines if task failure stops the build, or is just reported. The default is true. False
if bool If true then the task will be executed; otherwise, skipped. The default is true. False
unless bool Opposite of if. If false then the task will be executed; otherwise, skipped. The default is false. False
verbose bool Determines whether the task should report detailed build log messages. The default is false. False

Examples

Requirements

Assembly: NAnt.Core (0.93.5041.0)