0
239 次瀏覽

在 PT 中,有辦法使用正則表達式來搜尋「A 或 B 或 C 或 D」嗎?如果 A、B、C 和 D 是單個字元,我們可以將它們放在方括號中,但如果 A、B、C 和 D 是較長的字串呢?PT 有「多個詞語」功能,但這只能組合兩個詞語「A 或 B」。

一個選項是:先搜尋兩個詞語,然後搜尋另外兩個詞語並「加入清單」。然而,這樣得到的命中次數會少於總出現次數:如果不同的詞語出現在同一節經文中,不會額外計入命中次數。

具體情況如下:我想搜尋 huúuluulú(均為完整單詞)的所有出現位置。

搜尋 huú:265 次命中。

搜尋 uluulú:76 次命中。

總計:341 次命中。

先搜尋 huú,然後搜尋 uluulú 並「加入清單」:330 次命中。這意味著在瀏覽此清單時,如果 ulu/ulú 中的某個詞和 hū/huú 中的某個詞出現在同一節經文中,可能會遺漏這些出現位置。

因此我的問題是:可以使用正則表達式進行此搜尋嗎?

Paulus+Kieviet

機器翻譯自 English
Paratext (517 點) 提出
已重新顯示 | 239 次瀏覽

1 個回答

0

抱歉,我剛發現垂直線 | 是用於表示「或」的。

(不過,我仍不太確定為什麼 “regex:(hū|huú|ulu|ulú)” 只給出 300 個結果。)

Paulus+Kieviet

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

Paulus+Kieviet - 您的上下文設定為「僅完整單詞」嗎?您之前有使用這個設定嗎?這是可能影響計數的一個因素。在我的測試中,我發現搜尋中的每個單獨詞語都能被找到 - 無論一節經文中出現了多少個。

機器翻譯自 English

相關問題

+1
5 個回答 1.0k 次瀏覽
我希望在特定情況下將小寫字母改為大寫--例如,我希望將冒號後的所有小寫字母改為大寫 在 RegEx Pal 中,我找不到單一的規則來實現這一點,但有一個未記錄在案的功能,允許我建立一個簡單變更的列表來執行 (注意:確實有正則表達式可以做到 ... 可能還有其他一些事情不會完全按預期工作 如果您想嘗試此方法,我建議從一個非常簡單的列表開始,然後逐步添加內容
Phil_Leckrone 9.9k 提出 已提問 3月 2, 2022
0
5 個回答 653 次瀏覽
In our project's Biblical Terms list, I'm looking for an (easier) way to filter for terms which contain too many ... \r\n and filter more specifically that way? Any suggestions?
Mark P 3.2k 提出 已提問 7月 4, 2017
0
3 個回答 1.1k 次瀏覽
[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
5 個回答 773 次瀏覽
It appears that for all projects that I have created in PT8 RegEx Pal displays text in the find and replace windows using ... What do I need to do to stop this from happening?
Kent Spielmann 1.8k 提出 已提問 2月 26, 2018
0
8 個回答 1.6k 次瀏覽
We have a user who has inserted a lot of \pn and some \nd inside of footnotes. We now know we need those to be ... the search to inside of a single footnote? Thank you, MSEAIT/LT
MSEAIT_LT 478 提出 已提問 8月 20, 2018
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
And let us consider how we may spur one another on toward love and good deeds, not giving up meeting together, as some are in the habit of doing, but encouraging one another—and all the more as you see the Day approaching.
Hebrews 10:24-25
3,049 個問題
6,007 個回答
5,672 則評論
2,029 位使用者