Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
(\R){2,}(?!\R*\[[^][]*]$)
/
gm
Input 1
1
New
.... .... (many more section up above) .... [Zynga Games *] Section=Games DetectFile=%LocalAppData%\Zynga FileKey1=%LocalAppData%\Zynga\Logs|*.*|RECURSE [*Microsoft Windows Game Statistics] LangSecRef=3025 DetectOS=6.0 DetectFile=%localappdata%\Microsoft Games\ Default=False FileKey1=%localappdata%\Microsoft Games\Chess Titans\|chesstitans.xml FileKey2=%localappdata%\Microsoft Games\Freecell\|freecell.xml FileKey3=%localappdata%\Microsoft Games\Hearts\|hearts.xml FileKey4=%localappdata%\Microsoft Games\Mahjong Titans\|mahjong titans.xml FileKey8=%localappdata%\Microsoft Games\Minesweeper\|minesweeper.xml FileKey5=%localappdata%\Microsoft Games\Purble Place\|purble place.xml FileKey6=%localappdata%\Microsoft Games\Solitaire\|solitaire.xml FileKey7=%localappdata%\Microsoft Games\Spider Solitaire\|spider solitaire.xml [iMVU Cache] LangSecRef=3022 DectectFile=%appdata%\IMVUClient\IMVUClient.exe Default=False FileKey1=%appdata%\IMVU\cache\|*.*|REMOVESELF| FileKey2=%appdata%\IMVU\AssetCache\|*.*|REMOVESELF| FileKey3=%appdata%\IMVU\PixmapCache\|*.*|REMOVESELF| .... .... (many more could be below too...) ....
Substitution
$1