为了澄清,在 RegEx Pal(位于 Paratext 主菜单下的 Advanced 中),你可以搜索 \\s\d? [^\r]+\r\n 并将其替换为无,以删除章节标题。这包括 LivingField 提到的额外反斜杠。(之前的发帖人在撰写帖子时可能没有将他们的正则表达式标记为“Preformatted text”,因此输出中的一个反斜杠被“吞掉”了。)
回复 @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