} Perhaps one day somebody who is keen enough will write another
} library that sits on top of PCRE, and provides a number of different
} general-purpose "search and replace" facilities. But don't hold your
} breath.
FWIW, pcrecpp (already part of pcre) provides search-and-replace,
though it's C++, not C.