My most used regex commands

Remove everything between curly brackets including the curly brackets:

\{(\s*?.*?)*?\}

Delete empty lines:

^(\r|\n\r?)

Search for everything between string/tags

(?s)foo.+?bar

Replace foo and bar This may alo work in some cases:

?:<tag>)([\s\S]+?)(?:</tag>)

replace with the strings you want to start and end with… Select every line

Ctrl + Shift + L Split into Lines

Regex remove class HTML attribute

<[^>]*>