Question
How to write \r and \Z in the same expression?
For example, the following expression that looks for spaces at the beginning and end of a paragraph:
(^[[:blank:]]+)|([[:blank:]]+$)
I'm trying to add to this the case of end-of-article, end-of-table-cell spaces.
(^[[:blank:]]+)|([[:blank:]]+$)|([[:blank:]]+\Z)
The result failed.
But it's OK for you to separate two separate executions of ([[:blank:]]+\Z).
Translated with DeepL.com (free version)
