Community Patterns

Community Library Entry

3

Regular Expression
Created·2021-07-06 00:24
Flavor·PCRE2 (PHP)

/
(?'ID'\d{15,23}):(?'NAME'.*?)#(?'DISCRIMINATOR'[0-9]{4})
/
gm
Open regex in editor

Description

For example, using Carl-bot to dump members of the @everyone role ordering highest of id: !dump @everyone %i:%u -o id

Example of return:

498984530968051713:lanjt#2129
...

Matches with group ID, group NAME and group DISCRIMINATOR.

Submitted by lanjt