Skip to content

Instantly share code, notes, and snippets.

@madblobfish
madblobfish / gist:4b9883e3d7593f4f90b8fe0f3a1e1dc0
Created August 17, 2016 13:40 — forked from anonymous/gist:1e15601f9771abef580d5c2ed9c2bf14
Recursive RegExp to find empty sectionings in latex
\\(chapter|(sub)*section)(\{([^{}]*(?3)?[^{}]*)*\})\s*\\(chapter|(sub)*section)
Matching Examples:
1
\section{yoooo{} \textbf{asd}}
\section
2