This should work: (?m)}$r?n$r?n^O
Except it appears that EmEditor doesn’t support ANY Regex options:
(?m), (?i), (?-i), (?g), (?-g)
in Ted’s Notepad for instance, will match:
In EmEditor you cannot use multiple “^” or “$”, or else it it wrongly errors out with a message about invalid regex.
E.G. this works:
I use ?m), ?-i) and ?-g) all the time in AHK scripts, and (?-i) and (?-g) in Total Commander’s multi-rename tool.