single book, search results

Is there a way to make this multi-line without calling replace many times? Seems there is no access to the RegEx object, and // notation doesn't seem to handle new lines in any way I tried.