Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
xox(?:(?:s|p)-\d{11}-\d{11}-\d{11}-(?:[a-f0-9]{10})|b-\d{11}-(?:[A-Za-z0-9]{24}))
/
gi

Description

Validates any Slack auth tokens.

Submitted by Lemmmy - 9 years ago