0 votes

I would like to print the book of Proverbs, but I'd like to suppress printing any verse that contains the word "LATER" in it.

This seems like a job for changes.txt, but I can't get it to work.

For example, I thought this might be dangerous and overzealous, but I thought it would at least work:

'\\v .*?LATER.*?\\v' > '\\v'

Does "." not capture line endings? Is there any way to do what I'm trying?

PTXprint by (1.8k points)

1 Answer

0 votes

I think I have at least a few answers to my question:

Most of my problem was actually caused by a custom script I was running. Running the script at the end, rather than the beginning, allowed my changes.txt edits to take place. I'm not sure why, but that seems to be the answer.

Also, I think that "." doesn't capture new lines. Both [.\r\n] and [\s\S] seem to work to capture everything.

For some reason that I really don't understand, this worked:

'\\v \d+ LATER([\s\S]*?)(?=\\v)' > ''

but this didn't

'\\v \d+ LATER([\s\S]*?)\\v' > '\\v '

[Side rant: I really miss when the forum allowed Markdown.]

by (1.8k points)

Related questions

Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
And let us consider how we may spur one another on toward love and good deeds, not giving up meeting together, as some are in the habit of doing, but encouraging one another—and all the more as you see the Day approaching.
Hebrews 10:24-25
2,782 questions
5,628 answers
5,195 comments
1,629 users