#9202
CrashNBurn
Member

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)

}$r?n$r?n^O

in Ted’s Notepad for instance, will match:

}

OSV

In EmEditor you cannot use multiple “^” or “$”, or else it it wrongly errors out with a message about invalid regex.

E.G. this works:
}r?nr?nO

I use ?m), ?-i) and ?-g) all the time in AHK scripts, and (?-i) and (?-g) in Total Commander’s multi-rename tool.