Table of Contents

Class RegexPattern

Namespace
NuvTools.Validation
Assembly
NuvTools.Validation.dll

Regex patterns class.

public static class RegexPattern
Inheritance
RegexPattern
Inherited Members

Fields

BASE64_CONTENT

Regex to validate Base64 and extract using content label.

public const string BASE64_CONTENT = "^(?<content>(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4}))$"

Field Value

string

BASE64_DATAURI

Regex to validate and extract informations (type, extension and content) from Data URI Base64.

public const string BASE64_DATAURI = "^data:(?<type>.+?/(?<extension>.+?));(?<base>.+),(?<content>(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4}))$"

Field Value

string

EMAIL_ADDRESS

Regex pattern for e-mail address validation.

public const string EMAIL_ADDRESS = "^([a-z0-9_\\-])([a-z0-9_\\-\\.]*)@(\\[((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}|((([a-z0-9\\-]+)\\.)+))([a-z]{2,}|(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\])$"

Field Value

string