Identifiersflags: g
Slack User Mention
Match Slack user mentions in their raw form <@U01234ABC> as delivered by the Events API.
Try it in RegexPro →Available in
Pattern
regexengine-agnostic
<@U[A-Z0-9]{8,}> (flags: g)Raw source: <@U[A-Z0-9]{8,}>
How it works
Literal <@U prefix, then 8 or more uppercase alphanumeric characters (Slack's ID alphabet), closed by >. Matches user IDs regardless of legacy or modern length.
Examples
Input
cc <@U01234ABC> please reviewMatches
<@U01234ABC>
Input
pinged <@UABCDEF123GH> earlierMatches
<@UABCDEF123GH>
Input
no mentionsNo match
—Common use cases
- •Slack bot payload parsing
- •Notification auditing
- •@mention frequency analytics
- •Channel migration tooling
Related patterns
AWS ARN (Amazon Resource Name)
IdentifiersMatch AWS ARNs (Amazon Resource Names) across commercial, China, and GovCloud partitions.
AWS S3 Bucket Name
IdentifiersValidate AWS S3 bucket names per the standard naming rules: 3–63 chars, lowercase, alphanumeric + dots + hyphens.
Docker Image Tag
IdentifiersMatch Docker image references with an explicit tag — e.g. nginx:1.21, mycorp/service:v2.3.1.
Git Commit SHA
IdentifiersMatch Git commit hashes, both short (7 chars) and full (40 chars) forms.