I’m doing a search using the following regex patterns separately
a) .$ (analogous to .? $)
b) $
The pattern a detects all paragraphs, wherever they are, including those in nested table cells consisting of at least one character, including the space.
But it does NOT detect empty paragraphs instead
Pattern b detects the end of all paragraphs, including empty ones, but DOES NOT detect an empty paragraph preceding a table or even paragraphs in table cells containing a single paragraph.
I wrote a simple regex that theoretically should include both patterns, namely (. $ | $) But I also tried ($ |. $) And (^ $ |. $) And ^ $ |. $
But this compound pattern makes only the results rendered by the pattern a, so it doesn’t make the paragraphs empty.
Why ?dumDaCanc.odt