Find what: [.+(\s)+.+]
Replaced by: _
Also do not forget to select the switch Regular expressionin the section Search mode.
Update:
Ok, I have one solution, but it's dirty:
To do this, you need to make several replacements.
Find what: (\[.*)\s(.*\])
Replaced by: \1_\2
Repeat with Replace alluntil there are no occurrences.
source
share