CommonPatterns class

Commonly used regex patterns. Useful as patterns for FormatRule.

The patterns used are based on the regular expressions from Twitter's twitter-text library.

Ported from https://github.com/twitter/twitter-text/tree/65e7e00da383fb77f5ab7fe3c0dc26b724e14035/js/src/regexp.

Licensed under Apache 2.0: https://github.com/twitter/twitter-text/blob/65e7e00da383fb77f5ab7fe3c0dc26b724e14035/LICENSE

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Static Properties

hashtag RegExp
Matches alphanumeric words starting with a hash/pound sign.
final
httpUrl RegExp
Matches a valid http or https URL.
final
mention RegExp
Matches patterns that start with @ and are followed by an alphanumeric (including _) identifier.
final
validHashtag RegExp
Regex pattern for a valid hashtag.
final