RegexTask.

Pattern Property

Summary

Represents the regular expression to be evaluated.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Tasks
Containing Type
RegexTask

Syntax

[TaskAttribute("pattern", Required = true)]
[StringValidator(AllowEmpty = false)]
public string Pattern { get; set; }

Remarks

The pattern must contain one or more named constructs, which may not contain any punctuation and cannot begin with a number.

Attributes

Type Description
TaskAttributeAttribute Indicates that property should be treated as a XML attribute for the task.
StringValidatorAttribute Used to indicate whether a string property should allow an empty string value or not.

Value

Type Description
string The regular expression to be evaluated.