HtmlExtensions.BindingPattern Field

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

A regular expression pattern for validating a binding, i.e. an IP adress or a DNS host name.

public const string BindingPattern = "^(((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))|((?i:(([a-z0-9]|[a-z0-9][-a-z0-9]*[a-z0-9])\\.)*([a-z]|[a-z][-a-z0-9]*[a-z0-9]))))$"

Field value

string