rHashtags constant

String const rHashtags

Selects text that starts with "@" or "#" and is preceded or followed by non-word characters or the start/end of the String.

Implementation

static const rHashtags = r'(?<=^|\W)[#@]{1}(\w)+(?=\W|$)';