Community Patterns

Community Library Entry

0

Regular Expression
Created·2020-03-10 14:36
Flavor·PCRE (Legacy)

/
^((?: )*).+(?:\n\1((?: )+).*)(?:\n\1(?:(?: )+).*)*
/
gm
Open regex in editor

Description

group 1: base indent group 2: indentation spaces

a very generic code capturer

Submitted by anonymous