Replacement following glyph

Hi. I’ve completely forgotten how to replace a glyph which follows another. I’m trying to replace the standard ‘r’ in this example with an ‘r’ with a lead-in stroke.

Thanks in advance.

1 Like

So if the “r” follows a “P”?

sub P r' by r.leadin;

Perfect!