Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
((`){1,3}|(\*){1,3}|(~){2}|(\|){2}|^(>){1,3}|(_){1,2})+
/
gm

Description

it checkes for discord markdown

examples includes:

italic bold underline strikethrough

block quotes code blocks

and any other combinations of those

Submitted by padero - 4 years ago