I've been trying to juxtapose \Z's situation with \r, and have not been able to do so.
For example, in the one below, I'm trying to find all the numbers at the end of the paragraph, and the numbers at the end of the article.
(\d+(?=\r))|(\d+(?=\Z)) Individually it works, separately it fails.
Is there a way to fix this?
Is there a way that a character followed by null means it's at the very end.
Must it be written as two sentences?
Sometimes it's inconvenient.
