Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2021-02-08 04:55
Updated·2021-02-12 01:42
Flavor·JavaScript

/
^ {0,3}((?:(`){3,}?)|(?:(~){3,}?))(?!\2\3)(?:([^`\n]+?)(\1(?:\2\3)*)|(?:( *([^ \n]+)[^`\n]*)?\n([\s\S]*?)(^ {0,3}))(\1(?:\2\3)*)(?=$))
/
mg
Open regex in editor

Description

no description available

Submitted by anonymous