NAnt SDK Documentation - v0.85-nightly-2005-11-09

RegexTask.Pattern Property

[This is preliminary documentation and subject to change.]

Represents the regular expression to be evalued.

[Visual Basic]
<StringValidator(AllowEmpty:=False, Expression:="null", ExpressionErrorMessage:="null"), _  TaskAttribute(Name:="pattern", Required:=True, ExpandProperties:=True, ProcessXml:=True)>
Public Property Pattern As String
[C#]
[StringValidator(AllowEmpty=False, Expression="null", ExpressionErrorMessage="null")]
[TaskAttribute(Name="pattern", Required=True, ExpandProperties=True, ProcessXml=True)]
public string Pattern {get; set;}

Property Value

The regular expression to be evalued.

Remarks

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

See Also

RegexTask Class | NAnt.Core.Tasks Namespace