Implement nth occurrence in s flags.
Avoid parsing newlines as part of s commands.