Regular Expressions 101

Library entries

YAML Textmate Grammar - Name Property Hoister

Vote

0

Regular Expression
javascript

/
^([ ]{6})(- )((?!name)\w+[:](?:[ ]*(?=\n\1[ ]{4}\S)|[ ]*\S.+))((?:\n\1[ ]{2}.+)*?)(?:\n(\1[ ]{2})(name[ ]*[:])((?:[ ]*(?![>|])\S.+\b)|(?:(?:[ ]*[>|])?\n\5[ ]+.+)*))[ ]*$
/
gm

Description

Loading markdown...
Submitted by disk0 - 5 months ago