Open sandboxFocus

Constructor RegularExpressionAttribute

RegularExpressionAttribute(string)

Initializes a new RegularExpressionAttribute.

Declaration
public RegularExpressionAttribute(string pattern)
Parameters
Type Name Description
string pattern

The regular expression.

RegularExpressionAttribute(string, RegexOptions)

Initializes a new RegularExpressionAttribute and specify options.

Declaration
public RegularExpressionAttribute(string pattern, RegexOptions options)
Parameters
Type Name Description
string pattern

The regular expression.

RegexOptions options

Options.