為了確保清楚,在 RegEx Pal(可在 Paratext 主選單的「進階」下找到)中,你可以搜尋 \\s\d? [^\r]+\r\n 並將其替換為空白,以移除章節標題。這包括了 LivingField 提到的額外反斜線。(之前的發文者可能在撰寫貼文時沒有將正則表達式標記為「預格式化文字」,因此輸出時其中一個反斜線被「吃掉」了。)
回覆 @mnjames,這個正則表達式會自動處理所有形式的章節標題,\s、\s1、s2 等。正則表達式包含 \d?,這告訴它匹配一個可選的數字,因此可以匹配所有這些章節標題形式。你不需要單獨搜尋 \s 標記。
Just to make sure it is clear, in RegEx Pal (available on the main Paratext menu, under Advanced), you can search for: \\s\d? [^\r]+\r\n and replace it with nothing to remove section headings. That includes the extra backslash that LivingField was talking about. (It’s possible that the previous posters didn’t mark their regular expression as “Preformatted text” when they were writing their post, so one of the backslashes was “eaten” in the output.)
Replying to @mnjames, this regular expression automatically takes care of all forms of section headings, \s, \s1, s2, etc. The regex contains \d?, which tells it to match an optional digit, so that matches all of those section heading forms. You don’t need to search for the \s markers separately.
機器翻譯自 English