ParselyRegexes class

Pure-Dart compiled patterns for each entity type.

All patterns are static final so they compile once per isolate. Trailing punctuation is trimmed after matching (see EntityEngine).

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

email → RegExp
Email: unanchored (matches embedded emails). Requires a domain with at least one dot so a@b does not match. Trailing punctuation is trimmed by the engine.
final
hashtag → RegExp
Hashtag: # followed by a letter/underscore/emoji (not a digit).
final
Link: optional scheme or www., domain with TLD of 2+ letters or punycode (xn--…), optional port, path/query/fragment.
final
mention → RegExp
Mention: @ followed by a letter/underscore.
final
phone → RegExp
Phone candidate: digits with spaces, dashes, parens, dots, slashes.
final
phoneExtension → RegExp
Phone extension suffix (e.g. ext. 42, x123).
final

Static Methods

priorityOf(ParselyType type) → int
Priority lookup: lower wins. email (0) > link (1) > phone (2) > hashtag (3) > mention (4).