I'm working on a program where I'm dealing with long strings that look like this (only much longer):
. I want to fill in the area between the 1s with zeros, so that string would become
. I know that I can match the zeros with
, but I don't know how to go about replacing all of the 0s with 1s just inside the match. Can I chain that with