UrlMatcher class

A variant of TextMatcher for parsing URLs.

Inheritance

Constructors

UrlMatcher([String pattern = r'(?:https?:)?(?://)?(?:' r'(?:[\w\-]{1,256}\.){1,5}[a-zA-Z]{2,10}' r'|\d{1,3}(?:\.\d{1,3}){3}' r'|localhost' r')(?::\d{1,5})?' r"(?:[/?#](?:(?:[\w\-.~%!#$&'()*+,/:;=?@\[\]]+/?)*[^\s.])?)?"])
Creates a UrlMatcher for parsing URLs.
const

Properties

hashCode int
The hash code for this object.
read-onlyinherited
pattern String
The regular expression string to specify the rule for parsing.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited