0
268 次瀏覽

我試圖搜尋所有以特定詞頭開頭、以無重音元音結尾的章節標題。
例如,它應該能找到:
\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 點) 提出 | 268 次瀏覽

1 個回答

0
最佳回答

我剛注意到我上一則貼文中有部分文字沒有正確顯示。(文字中的星號被解釋為斜體標記。)以下是修正後的版本。

Paulus+Kieviet

機器翻譯自 English
(517 點) 提出
已重新顯示

請嘗試使用此搜尋: regex:\\s Ko te [^\\]+[aeiou] \\
注意:在這個論壇上,您可以使用「預格式化文字」樣式來精確顯示您輸入的字符:
grafik

機器翻譯自 English

起作用了。所以關鍵在於排除反斜線。謝謝!

Paulus+Kieviet

機器翻譯自 English

相關問題

0
1 個回答 143 次瀏覽
如何建立 REGEX 搜尋,以找出舊約中所有獨特的專有名詞?(來源文本使用 \pn ...\pn* 標記)也就是說,我該如何取得舊約中所有專有名詞的清單,同時避免每個詞彙出現多次?這部分可能需要透過 Paratext 以外的工具來完成。
Clear7419 251 提出 已提問 11月 19, 2024
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 提出 已提問 11月 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月 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 提出 已提問 6月 5, 2019
0
2 個回答 583 次瀏覽
各位讀者,您好 我想尋找 \fq 後面跟著任意字串(包含 ɛ ɔ ɲ ŋ),直到第一個 \\ft,接著是一個空格,然後後面不跟冒號的情況 範例句子: \fq cintɔnŋ Natan i ta ŋuŋ kɔnkɔli bo Solomani ... ^\:] 貪婪程度太高了 有什麼建議可以將搜尋限制在第一次出現的情況嗎? 提前感謝, Bart
goodgoan 347 提出 已提問 8月 3, 2023
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
I appeal to you, brothers and sisters, in the name of our Lord Jesus Christ, that all of you agree with one another in what you say and that there be no divisions among you, but that you be perfectly united in mind and thought.
1 Corinthians 1:10
3,048 個問題
6,007 個回答
5,672 則評論
2,027 位使用者