<PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0-preview.4.20251.6" />

System.ComponentModel.DataAnnotations.RegularExpressionAttribute

Specifies that a data field value in ASP.NET Dynamic Data must match the specified regular expression.
public int MatchTimeoutInMilliseconds { get; set; }

Gets or sets the amount of time in milliseconds to execute a single matching operation before the operation times out.

public string Pattern { get; }

Gets the regular expression pattern.

public RegularExpressionAttribute(string pattern)

Initializes a new instance of the RegularExpressionAttribute class.