Actions and batch-operations

How to apply upper case after an O' (like O'Hugo)?

There are irish/scottish names like O'Donnel, O'Leary etc, that all should be upper case. But you cannot use upper case in general after an ' because other words would be spelled wrongly then (That'S, Ain'T etc.).

Action type: Replace with regular expression
Regular expression: O'(.{1})
Replace matches with: O'$upper($1)
[x] case-sensitive comparison