HtmlExtensions.RootRelativeUrlPattern Field

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

A regular expression pattern for finding root-relative urls in html.

public const string RootRelativeUrlPattern = "(?<attrib>\\shref|\\ssrc|\\sbackground)\\s*?=\\s*?(?<delim1>[\"'\\\\]{0,2})(?!#|http|ftp|mailto|javascript)(?<url>/[^\"'>\\\\]*)(?<delim2>[\"'\\\\]{0,2})"

Field value

string