0
226 次浏览

Is there a way to find “A or B or C or D” in PT using regex? If A, B, C and D are single characters we can put them between square brackets, but what if A, B, C and D are longer strings? PT has the function “multiple words” but this only has the option to combine two words “A or B”.

One option is: first find two words, then find the other two and “Add to list”. However, this will give less hits than the total number of occurrences: it does not give an additional hit if the different words occur in the same verse.

The case in point: I want to find all occurrences of or huú or ulu or ulú (all whole words).

Find or huú: 265 hits.

Find ulu or ulú: 76 hits.

Total: 341 hits.

Find or huú, then ulu or ulú “add to list”: 330 hits. This means that when browsing through this list, one may overlook occurrences when one of ulu/ulú and one of hū/huú occur in the same verse.

Hence my question: can this search be done with RegEx?

Paulus+Kieviet

Paratext (517 分) 发布
已重新显示 | 226 次浏览

1 个回答

0

Sorry, I just found out that the vertical bar | is used for alternation.

(Still, not quite sure why “regex:(hū|huú|ulu|ulú)” only gives 300 results.)

Paulus+Kieviet

(517 分) 发布
已重新显示

Paulus+Kieviet - do you have the context set to “Whole word only”? Were you using that before? That is one thing that can affect the counts. In my test I do see that each individual word in the search is found - regardless of how many occur in a verse.

相关问题

+1
5 个回答 886 次浏览
我想在某些情况下将小写更改为大写--例如,我想将冒号后的所有小写字母更改为大写 在 RegEx Pal 中,没有单一的规则可以实现这一点,但有一个未记录的功能允许我创建一个简单更改的列表来运行 (注意:有一些正则表达式可以做到这一点,但在 ... A 可能还有其他一些事情不能按预期工作 如果您想尝试此方法,我建议从一个非常简单的列表开始,然后逐步添加内容
Phil_Leckrone 9.9k 发布 提问于 三月 2, 2022
0
5 个回答 641 次浏览
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 发布 提问于 七月 4, 2017
0
3 个回答 943 次浏览
[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
5 个回答 751 次浏览
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 发布 提问于 二月 26, 2018
0
8 个回答 1.4k 次浏览
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 发布 提问于 八月 20, 2018
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
They all joined together constantly in prayer, along with the women and Mary the mother of Jesus, and with his brothers.
Acts 1:14
3,044 个问题
6,004 个回答
5,671 条评论
2,026 位用户