There are three optional positional parameters which is a little on the unwieldy side: (regexp-replace re str subst [start end count])but for ease of use I'm allowing #f for the end (0 is shortenough for the start).