userMentionRegex top-level property
A pattern that matches user mentions in a message.
Implementation
final userMentionRegex = RegExp(r"<@!?(\d+)>");
A pattern that matches user mentions in a message.
final userMentionRegex = RegExp(r"<@!?(\d+)>");