Deleting text between brackets in notepad++
I need to delete everything between {} example below
Before:
ParticleEffects
{
animation = "distort"
0 = "mid Metadata/Effects/misc/distort/distort.pet"
}
After:
ParticleEffects
{
}
the } bracket has to be below { they can't be next to each other like this {} or else it won't work.
solution
- Find what:
\{(.*?)\}
- Replace with:
\{\n\}
- Search Mode: Regular expression
- [x] matches newline (must be selected)
info
- "{" and "}" must be escaped with "\"
- "\n" inserts newline character