0
267 次浏览

我试图搜索所有以特定词首开头且以无重音元音结尾的章节标题。
例如,它应该找到:
\s Ko te ongo tangata langa fale
但不应该找到:
\s Ko te ongo tangata langa falé

我使用了以下正则表达式:
regex:\s Ko te .?[aeiou]\s\

然而,这不起作用:Paratext 确实找到了所有以“Ko te”开头的章节标题,但也找到了那些不以普通元音结尾的标题。对于后者,搜索结果包含了直到下一个以普通元音结尾的章节标题为止的所有文本。例如,其中一个搜索结果是:
\s Ko te fu’u 'akau mo tono fuá \r …. [大量文本] …. \s Ko te fakatokanga

我原本以为使用 *?(非贪婪模式)可以解决这个问题,但显然并非如此。

我也尝试了类似以下的变体:
regex:\s Ko te .?[aeiou]\ (只有错误的匹配)
regex:\s Ko te .
?[aeiou]\s*\r\n (没有匹配)

有没有其他有效的方法?

提前感谢!
Paulus+Kieviet

机器翻译自 English
Paratext (517 分) 发布 | 267 次浏览

1 个回答

0
最佳答案

我刚刚注意到我上一条帖子中的某些文本没有正确显示。(文本中的星号被解释为斜体标记。)以下是更正后的版本。

Paulus+Kieviet

机器翻译自 English
(517 分) 发布
已重新显示

请尝试使用以下搜索:regex:\\s Ko te [^\\]+[aeiou] \\
注意:在这个论坛上,您可以使用“预格式化文本”样式来准确显示您输入的字符:
图形

机器翻译自 English

起作用了。所以诀窍是排除反斜杠。谢谢!

Paulus+Kieviet

机器翻译自 English

相关问题

0
1 个回答 143 次浏览
如何创建 REGEX 搜索以查找旧约中所有唯一的专有名词,且源文本使用 \pn ...\pn* 标记?也就是说,如何获取旧约中所有专有名词的列表,同时避免每个术语出现多次?其中一些操作可能需要在 Paratext 外部完成。
Clear7419 251 发布 提问于 十一月 19, 2024
Paratext
0
1 个回答 382 次浏览
Hi I am working with a team to enter renderings in their Biblical terms tool. Their language marks the future ... this would negate the value of the checking. Thanks anon703820
anon703820 222 发布 提问于 十一月 26, 2018
0
3 个回答 310 次浏览
Hi, Does anyone know how I can find anywhere in my PT project where there are two quotes within the same paragraph? I can ... and they asked, ** **Is Peter here? Thanks in advance
anon953007 213 发布 提问于 九月 9, 2020
0
3 个回答 985 次浏览
[There is no Help topic for RegEx Pal, so I'll start this thread for myself or anyone else to add helpful ... History panic (post #3) Key terms for search: regular expression
wdavidhj 1.4k 发布 提问于 六月 5, 2019
0
2 个回答 583 次浏览
亲爱的读者 我想找到 \fq 后面跟着任意字符串(包括 ɛ ɔ ɲ ŋ),直到第一个 \\ft,其后跟一个空格,且后面不跟冒号 示例句子: \fq cintɔnŋ Natan i ta ŋuŋ kɔnkɔli bo Solomani ŋununu \ft ... [^\:] 过于贪婪 有什么建议可以限制搜索范围到第一次出现的情况吗? 提前致谢, Bart
goodgoan 347 发布 提问于 八月 3, 2023
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
They devoted themselves to the apostles’ teaching and to fellowship, to the breaking of bread and to prayer.
Acts 2:42
3,048 个问题
6,007 个回答
5,672 条评论
2,027 位用户