Regular Expressions 101

discord markdown

Open Workspace
  • JavaScript
  • Match
0

Regular Expression

/
((`){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